Skip to content

Commit

Permalink
fix(action): pytest and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
clementpoiret committed Oct 29, 2024
1 parent d0f01fd commit 6ae60d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ jobs:
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv

- name: Run tests
shell: devenv shell bash -e {0}
run: |
uv sync
uv pip install onnxruntime>=1.8.0 deepsparse>=1.4.0
uv run coverage run --source=hsf -m pytest
uv run coverage xml
- name: Run Tests and Coverage
run: devenv shell pytestcoverage

- name: Publish Coverage on CodeClimate
uses: paambaati/[email protected]
Expand Down
7 changes: 7 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,11 @@ in {
enterTest = ''
uv run pytest
'';

scripts.pytestcoverage.exec = ''
uv sync
uv pip install onnxruntime>=1.8.0 deepsparse>=1.4.0
uv run coverage run --source=hsf -m pytest
uv run coverage xml
'';
}

0 comments on commit 6ae60d9

Please sign in to comment.