Skip to content

Commit

Permalink
coveralls (#45)
Browse files Browse the repository at this point in the history
* add coveralls

* add xml report

* Update main.yml

* try new syntax for coveralls

* try service flag
  • Loading branch information
mathematicalmichael authored Jul 11, 2021
1 parent 5568687 commit 77cc5e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ jobs:
- name: Run unit tests
run: pytest

- name: Code Coverage
- name: Upload coverage to codecov.io
if: ${{ matrix.python-version }} == 3.9
run: |
export CODECOV_VERSION=${{ secrets.codecov_token }}
bash <(curl -s https://codecov.io/bash)
export CODECOV_VERSION=${{ secrets.codecov_token }}
bash <(curl -s https://codecov.io/bash)
- name: Upload coverage to coveralls.io
if: ${{ matrix.python-version }} == 3.9
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ addopts =
tests/
--cov mud
--cov-report term-missing
--cov-report xml
--verbose
--doctest-modules src/mud

Expand Down

0 comments on commit 77cc5e8

Please sign in to comment.