Skip to content

Commit 67cb628

Browse files
committed
Try coverage settings
- using coverage.xml
1 parent 97e223f commit 67cb628

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.github/workflows/prerelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build a binary wheel and a source tarball
2525
run: python3 -m build
2626
- name: Store the distribution packages
27-
uses: actions/upload-artifact@v3
27+
uses: actions/upload-artifact@v4
2828
with:
2929
name: python-package-distributions
3030
path: dist/
@@ -40,7 +40,7 @@ jobs:
4040
id-token: write # IMPORTANT: mandatory for trusted publishing
4141
steps:
4242
- name: Download all the dists
43-
uses: actions/download-artifact@v3
43+
uses: actions/download-artifact@v4
4444
with:
4545
name: python-package-distributions
4646
path: dist/

.github/workflows/push.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: ruff check --output-format=github network_wrangler
3333
- name: Run tests with coverage and benchmarking
3434
run: |
35-
pytest --junitxml=coverage.xml --benchmark-save=benchmark --benchmark-json=benchmark.json
35+
pytest --junitxml=pytest.xml --cov-report "xml:coverage.xml" --benchmark-save=benchmark --benchmark-json=benchmark.json
3636
- name: Build docs
3737
run: |
3838
mike deploy --push ${{ github.ref_name }}
@@ -45,18 +45,21 @@ jobs:
4545
with:
4646
tool: 'pytest'
4747
output-file-path: benchmark.json
48+
alert-threshold: '125%'
4849
github-token: ${{ secrets.GITHUB_TOKEN }}
4950
comment-on-alert: true
5051
summary-always: true
52+
- name: Upload coverage artifacts
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: coverage
56+
retention-days: 5
57+
path: |
58+
coverage.xml
5159
- name: Pytest coverage comment
5260
if: github.event_name == 'pull_request'
5361
uses: MishaKav/pytest-coverage-comment@main
5462
with:
55-
junitxml-path: ./coverage.xml
56-
- name: Upload coverage and benchmark artifacts
57-
uses: actions/upload-artifact@v3
58-
with:
59-
name: coverage-and-benchmark
60-
path: |
61-
coverage.xml
62-
benchmark.json
63+
pytest-xml-coverage-path: coverage.xml
64+
junitxml-path: pytest.xml
65+

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build a binary wheel and a source tarball
2525
run: python3 -m build
2626
- name: Store the distribution packages
27-
uses: actions/upload-artifact@v3
27+
uses: actions/upload-artifact@v4
2828
with:
2929
name: python-package-distributions
3030
path: dist/
@@ -41,7 +41,7 @@ jobs:
4141
id-token: write # IMPORTANT: mandatory for trusted publishing
4242
steps:
4343
- name: Download all the dists
44-
uses: actions/download-artifact@v3
44+
uses: actions/download-artifact@v4
4545
with:
4646
name: python-package-distributions
4747
path: dist/

0 commit comments

Comments
 (0)