Skip to content

Commit 167d580

Browse files
committed
uv run in pytest for virtaul env
1 parent 6967db0 commit 167d580

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/python-app.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
2324
# ---------- install uv -------------------------------------------------
2425
- name: Install uv (fast dependency resolver)
2526
run: |
@@ -30,13 +31,13 @@ jobs:
3031
run: |
3132
uv sync
3233
33-
# ---------- run test suite -----------------------------------
34+
# ---------- run test suite -----------------------------------
3435
- name: Run tests and generate coverage report
3536
run: |
36-
pytest tests/ --cov=app --cov-report=xml
37+
uv run pytest tests/ --cov=app --cov-report=xml
3738
3839
- name: Upload coverage report as an artifact
3940
uses: actions/upload-artifact@v4
4041
with:
4142
name: coverage-report
42-
path: coverage.xml
43+
path: coverage.xml

0 commit comments

Comments
 (0)