Skip to content

Commit 57ec133

Browse files
committed
use uv to run pytest and ruff
1 parent 8525b3a commit 57ec133

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python-version: 3.9
1717
- name: Setup
1818
run: |
19-
uv sync --locked
19+
uv sync --locked --dev
2020
- name: Run coverage
2121
run: |
2222
coverage run -m pytest

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
python-version: ${{ matrix.python }}
4545
- name: Setup
4646
run: |
47-
uv sync --locked --no-install-package=django
47+
uv sync --locked --dev --no-install-package=django
4848
uv pip install "${{ matrix.django }}" psycopg2-binary
4949
- name: Run tests
5050
env:
@@ -57,7 +57,7 @@ jobs:
5757
"HOST":"localhost",
5858
"PORT":"5432"
5959
}
60-
run: pytest --cov=field_audit --cov-branch -v
60+
run: uv run pytest --cov=field_audit --cov-branch -v
6161
continue-on-error: ${{ matrix.experimental }}
6262
- name: Check migrations
6363
run: |
@@ -67,4 +67,4 @@ jobs:
6767
git diff --cached --exit-code
6868
continue-on-error: ${{ matrix.experimental }}
6969
- name: Check style
70-
run: ruff check
70+
run: uv run ruff check

0 commit comments

Comments
 (0)