Skip to content

Commit

Permalink
Fix coverage on CI when multiple Python versions
Browse files Browse the repository at this point in the history
This was broken by the upgrade to `upload-artifact@v4`, see:
https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
  • Loading branch information
seanh committed Oct 8, 2024
1 parent b6f07ea commit 6590297
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _shared/project/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ jobs:
- name: Download coverage files
uses: actions/download-artifact@v4
with:
name: coverage
pattern: coverage-python*
merge-multiple: true
{% endif %}
- run: python -m pip install 'tox<4'
{% if job == 'format' %}
Expand All @@ -124,7 +125,7 @@ jobs:
- name: Upload coverage file
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-python{% raw %}${{ matrix.python-version}}{% endraw +%}
path: .coverage.*
include-hidden-files: true
{% endif %}
Expand Down

0 comments on commit 6590297

Please sign in to comment.