Skip to content

Commit

Permalink
test.yml: Give each coverage artifact a unique name (#86)
Browse files Browse the repository at this point in the history
test.yml: Give each coverage file unique names
  • Loading branch information
moshekaplan authored Sep 4, 2024
1 parent d2dc63e commit 8d6a102
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
pytest
python -m pip install -e .
coverage run -m pytest .
coverage json --include "src/*"
coverage json --include "src/*" -o ${{ matrix.python-version }}_coverage.json
- name: "Upload coverage data"
uses: actions/upload-artifact@v4
with:
name: covdata
name: ${{ matrix.python-version }}_covdata
path: coverage.json

coverage:
Expand All @@ -58,7 +58,7 @@ jobs:
- name: "Download coverage data"
uses: actions/download-artifact@v4
with:
name: covdata
name: 3.11_covdata
- name: Extract coverage stats
run: |
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
Expand Down

0 comments on commit 8d6a102

Please sign in to comment.