Skip to content

Commit 3d4d19f

Browse files
refactor: simplified Makefile; used other way to install poetry
1 parent 2ba6d0a commit 3d4d19f

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@ jobs:
1616
matrix:
1717
os: [windows-latest, ubuntu-latest]
1818
python-version: ["3.8", "3.10", "3.12"]
19-
defaults:
20-
run:
21-
shell: bash
2219
steps:
2320
- uses: actions/checkout@v4
2421
- name: Set up Python ${{ matrix.python-version }}
2522
uses: actions/setup-python@v5
2623
with:
2724
python-version: ${{ matrix.python-version }}
2825
- name: Install Poetry
29-
uses: snok/install-poetry@v1
26+
uses: abatilo/actions-poetry@v2
3027
- name: Install dependencies
3128
run: poetry install --no-interaction
3229
- name: Lint with ruff and test with pytest

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install Poetry
21-
uses: snok/install-poetry@v1
21+
uses: abatilo/actions-poetry@v2
2222
- name: Install dependencies
2323
run: poetry install --no-interaction
2424
- name: Test with coverage and pytest

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
.PHONY: all
1+
.PHONY: all check format test
22

33
all: check test
44

55
check:
6-
poetry run python -m ruff check mongomock_motor/ tests/ && \
7-
poetry run python -m ruff format --check mongomock_motor/ tests/
6+
poetry run ruff check mongomock_motor tests && \
7+
poetry run ruff format --check mongomock_motor tests
88

99
format:
10-
poetry run python -m ruff check --fix mongomock_motor/ tests/ && \
11-
poetry run python -m ruff format mongomock_motor/ tests/
10+
poetry run ruff check --fix mongomock_motor tests && \
11+
poetry run ruff format mongomock_motor tests
1212

1313
test:
14-
poetry run python -m pytest tests/
14+
poetry run pytest tests

0 commit comments

Comments
 (0)