Skip to content

Commit

Permalink
ci: fix coveralls coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasberbuer committed Jul 13, 2023
1 parent fbcaf38 commit bd3b139
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -34,11 +34,14 @@ jobs:
run: tox -e py-numba
- name: Run PyInstaller test
run: tox -e pyinstaller
- name: Coverage report
run: tox -e coverage-report
- name: Upload coverage results to Coveralls
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11'
run: tox -e coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.xml

docs:
runs-on: ubuntu-latest
Expand Down
11 changes: 1 addition & 10 deletions pyproject.toml
Expand Up @@ -83,16 +83,7 @@ deps = coverage[toml]>=5
commands =
- coverage combine
coverage report
[testenv:coveralls]
skip_install = true
deps =
coverage[toml]>=5
coveralls
passenv = GITHUB_*
commands =
- coverage combine
coveralls --service=github
coverage xml
[testenv:pyinstaller]
deps = pyinstaller>=4
Expand Down

0 comments on commit bd3b139

Please sign in to comment.