Skip to content

Commit

Permalink
Fix upload-artifact@v4
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Sep 7, 2024
1 parent f15864e commit 475c49e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ jobs:
CI_RUN: "yes"
DIFF_AGAINST: HEAD
- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
include-hidden-files: true
name: .coverage.${{ matrix.py }}
path: ".tox/.coverage.*"
retention-days: 3

coverage:
name: Combine coverage
Expand All @@ -69,18 +71,19 @@ jobs:
- name: Setup coverage tool
run: tox -e coverage --notest
- name: Install package builder
run: python -m pip install build
run: python -m pip install build[uv]
- name: Build package
run: pyproject-build --wheel .
run: pyproject-build --wheel --installer uv .
- name: Download coverage data
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-data
path: .tox
pattern: .coverage.*
merge-multiple: true
- name: Combine and report coverage
run: tox -e coverage
- name: Upload HTML report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report
path: .tox/htmlcov
Expand All @@ -106,6 +109,6 @@ jobs:
- name: Install tox
run: python -m pip install tox-uv
- name: Setup test suite
run: tox -vv --notest -e ${{ matrix.tox_env }}
run: tox -vv --notest --skip-missing-interpreters false -e ${{ matrix.tox_env }}
- name: Run test suite
run: tox --skip-pkg-install -e ${{ matrix.tox_env }}

0 comments on commit 475c49e

Please sign in to comment.