Skip to content

Commit fc12c99

Browse files
committed
patching release.yml to run pytest from uv
1 parent 3d23499 commit fc12c99

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939

4040
# Install uv
4141
- name: Install uv
42-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
43-
shell: bash
42+
uses: astral-sh/setup-uv@v5
4443

4544
# Add uv to the PATH
4645
- name: Add uv to PATH
@@ -64,7 +63,11 @@ jobs:
6463
# primarily affects the main dependency installation step.
6564

6665
- name: Run tests with coverage
67-
run: python -m pytest --cov=sqlmodel_crud_utils --cov-report=xml --cov-report=term # Generate XML and terminal reports
66+
run: |
67+
uv pip install pytest-cov
68+
69+
uv run pytest test --cov=sqlmodel_crud_utils
70+
--cov-report=xml --cov-report=term # Generate XML and terminal reports
6871
6972
- name: Upload coverage report
7073
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)