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:
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- .PHONY : all
1+ .PHONY : all check format test
22
33all : check test
44
55check :
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
99format :
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
1313test :
14- poetry run python -m pytest tests/
14+ poetry run pytest tests
You can’t perform that action at this time.
0 commit comments