Skip to content

Commit

Permalink
Add coveralls to CI (#164)
Browse files Browse the repository at this point in the history
* Add coveralls to ci

* Update coverage runs
  • Loading branch information
paulf81 authored Feb 9, 2024
1 parent 1d05ec6 commit bcd3af8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
12 changes: 0 additions & 12 deletions .codecov.yml

This file was deleted.

21 changes: 8 additions & 13 deletions .github/workflows/continuous-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,18 @@ jobs:
python -m pip install --upgrade pip
pip install -e ".[develop]"
- uses: pre-commit/action@v3.0.0
- name: Run tests and collect coverage
- name: Run tests
run: |
# -rA displays the captured output for all tests after they're run
# See the docs: https://doc.pytest.org/en/latest/reference/reference.html#command-line-flags
pytest -rA tests/
- name: Generate coverage report
# Run these tests on unit tests only so that we avoid inflating our code
# coverage through the regression tests
- name: Run coverage
if: matrix.os == 'ubuntu-latest'
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml tests/
- name: Upload coverage to Codecov
if: ${{ env.CODECOV_TOKEN }} # Don't attempt to upload if the codecov token is not configured
uses: codecov/codecov-action@v3
pip install pytest coverage coveralls
coverage run -m pytest tests/
- name: Upload coverage to coveralls
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bcd3af8

Please sign in to comment.