diff --git a/.github/workflows/mr_ci.yml b/.github/workflows/mr_ci.yml index 5eb806c8..45bc6af4 100644 --- a/.github/workflows/mr_ci.yml +++ b/.github/workflows/mr_ci.yml @@ -31,6 +31,7 @@ jobs: - name: Install dependencies run: | python -m pip install ".[dev]" + python -m pip install pytest-cov - name: Quality Assurance run: | @@ -41,4 +42,15 @@ jobs: - name: Test with pytest run: | - python -m pytest ./tests + python -m pytest --cov=./ --cov-report=xml ./tests + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage/reports/ + env_vars: OS,PYTHON + fail_ci_if_error: true + files: ./coverage.xml,!./cache + flags: unittests + name: codecov-umbrella