File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,14 @@ jobs:
16
16
matrix :
17
17
os : [windows-latest, ubuntu-latest]
18
18
python-version : ["3.8", "3.10", "3.12"]
19
- defaults :
20
- run :
21
- shell : bash
22
19
steps :
23
20
- uses : actions/checkout@v4
24
21
- name : Set up Python ${{ matrix.python-version }}
25
22
uses : actions/setup-python@v5
26
23
with :
27
24
python-version : ${{ matrix.python-version }}
28
25
- name : Install Poetry
29
- uses : snok/install -poetry@v1
26
+ uses : abatilo/actions -poetry@v2
30
27
- name : Install dependencies
31
28
run : poetry install --no-interaction
32
29
- name : Lint with ruff and test with pytest
Original file line number Diff line number Diff line change 18
18
with :
19
19
python-version : ${{ matrix.python-version }}
20
20
- name : Install Poetry
21
- uses : snok/install -poetry@v1
21
+ uses : abatilo/actions -poetry@v2
22
22
- name : Install dependencies
23
23
run : poetry install --no-interaction
24
24
- name : Test with coverage and pytest
Original file line number Diff line number Diff line change 1
- .PHONY : all
1
+ .PHONY : all check format test
2
2
3
3
all : check test
4
4
5
5
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
8
8
9
9
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
12
12
13
13
test :
14
- poetry run python -m pytest tests/
14
+ poetry run pytest tests
You can’t perform that action at this time.
0 commit comments