Skip to content

Commit

Permalink
Merge pull request #328 from Living-with-machines/codecov
Browse files Browse the repository at this point in the history
Add codecov
  • Loading branch information
rwood-97 authored Jan 2, 2024
2 parents 006266d + 4fcaaae commit cce63d8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/mr_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install ".[dev]"
python -m pip install pytest-cov
- name: Quality Assurance
run: |
Expand All @@ -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

0 comments on commit cce63d8

Please sign in to comment.