Skip to content

Commit

Permalink
Let's try a modified coverage instead
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Aug 16, 2020
1 parent b06ec40 commit 4eb9115
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions .github/workflows/codeqa-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,29 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install .[test,curio,trio]
run: |
pip install https://github.com/agronholm/coveragepy/archive/relativepath.zip
pip install .[test,curio,trio] coveralls
- name: Test with pytest
run: coverage run -p -m pytest
- name: Upload coverage artifact
uses: actions/upload-artifact@v2
with:
name: coverage-data
path: .coverage.*
run: |
coverage run --relative-path=$(python -c "import sysconfig; print(sysconfig.get_path('purelib'))") -m pytest
coverage debug data
- name: Upload Coverage
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true

coveralls:
name: Upload coverage data to Coveralls
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- uses: actions/checkout@v2
- name: Download coverage artifacts
uses: actions/download-artifact@v2
id: download
with:
name: coverage-data
- name: Install Coverage and Coveralls
run: pip install coverage coveralls
- name: Combine coverage data and upload to coveralls.io
- name: Finished
run: |
coverage combine
coverage debug data
coveralls
pip install coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4eb9115

Please sign in to comment.