Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
qubvel committed Dec 23, 2024
1 parent 527799e commit 0474e77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ jobs:
run: |
python -m pip list
- name: Test with pytest
run: pytest -v -n 2
run: pytest -v -n 2 --cov=segmentation_models_pytorch --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: qubvel-org/segmentation_models.pytorch
if: matrix.os == 'macos-latest' && matrix.python-version == '3.12'

minimum:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pytest==8.3.4
pytest-xdist==3.6.1
pytest-cov==6.0.0
ruff==0.8.4

0 comments on commit 0474e77

Please sign in to comment.