diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 8a7f6d4..0e70e7a 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -38,4 +38,15 @@ jobs: - name: Run Tests run: - pytest --no-header -v test + coverage run -m pytest --no-header -v test + + - name: Report test coverage + run: | + coverage report -m + coverage html + + - name: Archive code coverage results + uses: actions/upload-artifact@v4 + with: + name: code-coverage-report + path: htmlcov diff --git a/ci_requirements.txt b/ci_requirements.txt index 775d288..c148804 100644 --- a/ci_requirements.txt +++ b/ci_requirements.txt @@ -6,3 +6,4 @@ pre-commit pytest sphinx sphinx-rtd-theme +coverage diff --git a/requirements.txt b/requirements.txt index ea75ee0..110784f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ xarray progress_table>=2.2.0 omegaconf torchmetrics -nvidia-ml-py \ No newline at end of file +nvidia-ml-py