Skip to content

Commit

Permalink
Fix coverage (#176)
Browse files Browse the repository at this point in the history
fix coverage by reverting upload-artifact behavior with "include-hidden-files: true"
  • Loading branch information
cbyrohl authored Sep 17, 2024
1 parent 9ce5bc5 commit 31fca3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,17 @@ jobs:
nox --python=${{ matrix.python-version }}
- name: Upload coverage data
if: always() && matrix.session == 'tests'
uses: "actions/upload-artifact@v3"
if: always() && matrix.session == 'tests' && matrix.python-version == '3.10'
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: ".coverage.*"
include-hidden-files: true
path: ".coverage*"


- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/_build
Expand Down Expand Up @@ -161,7 +163,7 @@ jobs:
nox --version
- name: Download coverage data
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-data

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def tests_base(session):
session.run(
"coverage",
"run",
"--parallel",
"--parallel-mode",
"-m",
"pytest",
"-v",
Expand Down

0 comments on commit 31fca3f

Please sign in to comment.