Skip to content

Commit

Permalink
refactor: simplified Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kryukov committed Sep 12, 2024
1 parent 2ba6d0a commit 17cec38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction
- name: Lint with ruff and test with pytest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction
- name: Test with coverage and pytest
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
all: check test

check:
poetry run python -m ruff check mongomock_motor/ tests/ && \
poetry run python -m ruff format --check mongomock_motor/ tests/
poetry run ruff check mongomock_motor tests && \
poetry run ruff format --check mongomock_motor tests

format:
poetry run python -m ruff check --fix mongomock_motor/ tests/ && \
poetry run python -m ruff format mongomock_motor/ tests/
poetry run ruff check --fix mongomock_motor tests && \
poetry run ruff format mongomock_motor tests

test:
poetry run python -m pytest tests/
poetry run pytest tests

0 comments on commit 17cec38

Please sign in to comment.