diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9278c84b..4f87bb60 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/requirements/test.txt b/requirements/test.txt index aaa038b4..ca126ece 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,3 +1,4 @@ pytest==8.3.4 pytest-xdist==3.6.1 +pytest-cov==6.0.0 ruff==0.8.4 \ No newline at end of file