Skip to content

Commit

Permalink
workflows: add coveralls.io upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Cube707 committed Jul 25, 2022
1 parent 5c6f4f4 commit 9cc0f62
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/run-tests.yml
Expand Up @@ -64,7 +64,32 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install coveralls
pip install -e .
- name: Test with pytest
run: |
pytest
- name: Coverage upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: ${{ join(matrix.*, ',') }}
run: |
coveralls --service=github
finish-coveralls:
needs: pytest
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install coveralls
- name: Coverage finish
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
run: |
coveralls --service=github --finish

0 comments on commit 9cc0f62

Please sign in to comment.