Skip to content

Commit aa56665

Browse files
committed
use coveralls instead
1 parent 8cf76d2 commit aa56665

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ jobs:
1818
pip install pytest
1919
pip install pytest-asyncio
2020
pip install coverage
21-
pip install coveragepy-lcov
21+
pip install coveralls
2222
pip install .
2323
- name: Calculate coverage
2424
env:
2525
API_KEY: ${{ secrets.TRACKUNIT_API_KEY }}
2626
run: |
2727
echo $API_KEY | python -c $'import sys\nkey = sys.stdin.readline().strip()\nif len(key) == 32:\n open("api.key","w").write(key)\nelse:\n print("wrong length "+str(len(key)))\n sys.exit(1)\n'
2828
coverage run -m --source=pytrackunit pytest -x --ignore=tests\test_real_data.py
29-
- name: Convert to LCOV-file
29+
- name: Upload to coveralls
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032
run: |
31-
coveragepy-lcov
32-
- name: Coveralls GitHub Action
33-
uses: coverallsapp/github-action@1.1.3
34-
with:
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
coveralls --service=github
3634

0 commit comments

Comments
 (0)