Skip to content

Commit

Permalink
feat: codecov integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaquiery committed Nov 12, 2024
1 parent 6180d5f commit 40b05da
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install CodeCov dependencies
run: pip install pytest pytest-cov
- name: Install self
run: pip install -e .
- name: Run tests
run: |
cd tests
python -m unittest discover
pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./tests/coverage.xml
flags: unittests
fail_ci_if_error: false

0 comments on commit 40b05da

Please sign in to comment.