File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 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/
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/
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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/
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/
You can’t perform that action at this time.
0 commit comments