Skip to content

Commit

Permalink
Try coverage settings
Browse files Browse the repository at this point in the history
- using coverage.xml
  • Loading branch information
e-lo committed Oct 21, 2024
1 parent 97e223f commit 67cb628
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand All @@ -40,7 +40,7 @@ jobs:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: ruff check --output-format=github network_wrangler
- name: Run tests with coverage and benchmarking
run: |
pytest --junitxml=coverage.xml --benchmark-save=benchmark --benchmark-json=benchmark.json
pytest --junitxml=pytest.xml --cov-report "xml:coverage.xml" --benchmark-save=benchmark --benchmark-json=benchmark.json
- name: Build docs
run: |
mike deploy --push ${{ github.ref_name }}
Expand All @@ -45,18 +45,21 @@ jobs:
with:
tool: 'pytest'
output-file-path: benchmark.json
alert-threshold: '125%'
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
summary-always: true
- name: Upload coverage artifacts
uses: actions/upload-artifact@v4
with:
name: coverage
retention-days: 5
path: |
coverage.xml
- name: Pytest coverage comment
if: github.event_name == 'pull_request'
uses: MishaKav/pytest-coverage-comment@main
with:
junitxml-path: ./coverage.xml
- name: Upload coverage and benchmark artifacts
uses: actions/upload-artifact@v3
with:
name: coverage-and-benchmark
path: |
coverage.xml
benchmark.json
pytest-xml-coverage-path: coverage.xml
junitxml-path: pytest.xml

4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand All @@ -41,7 +41,7 @@ jobs:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down

0 comments on commit 67cb628

Please sign in to comment.