@@ -19,80 +19,84 @@ jobs:
1919 gha-download-artifact : " actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16"
2020 gha-upload-artifact : " actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b"
2121
22- run-tests-and-coverage :
23- name : " Run pytest with coverage."
24- needs : ["settings"]
25- runs-on : " ${{ matrix.os }}"
26- strategy :
27- fail-fast : false
28- matrix :
29- os :
30- - " macos-latest"
31- - " windows-latest"
32- - " ubuntu-latest"
33- python-version :
34- - " 3.9"
35- - " 3.10"
36- - " 3.11"
37- - " 3.12"
38- - " 3.13"
39- - " 3.14"
40-
41- steps :
42- - name : " Repo checkout"
43- uses : " ${{ needs.settings.outputs.gha-checkout }}"
44-
45- - name : " Set up Python ${{ matrix.python-version }}"
46- uses : " ${{ needs.settings.outputs.gha-setup-python }}"
47- with :
48- python-version : " ${{ matrix.python-version }}"
49- allow-prereleases : true
50-
51- - name : " Install nox"
52- run : |
53- python -m pip install --upgrade nox
54-
55- - name : " Run tests and coverage via nox"
56- run : |
57- nox --session test -- partial-coverage
58-
59- - name : " Save coverage artifact"
60- uses : " ${{ needs.settings.outputs.gha-upload-artifact }}"
61- with :
62- name : " coverage-artifact-${{ matrix.os}}-${{ matrix.python-version}}"
63- path : " .coverage.*"
64- retention-days : 1
65- include-hidden-files : true
66-
67- coverage-compile :
68- name : " Compile coverage reports."
69- needs : ["settings", "run-tests-and-coverage"]
70- runs-on : " ubuntu-latest"
7122 steps :
72- - name : " Repo checkout"
73- uses : " ${{ needs.settings.outputs.gha-checkout }}"
74-
75- - name : " Set up Python"
76- uses : " ${{ needs.settings.outputs.gha-setup-python }}"
77- with :
78- python-version : " ${{ needs.settings.outputs.default-python-version }}"
79-
80- - name : " Install nox"
81- run : |
82- python -m pip install --upgrade nox
83-
84- - name : " Download coverage artifacts"
85- uses : " ${{ needs.settings.outputs.gha-download-artifact }}"
86- with :
87- pattern : " coverage-artifact-*"
88- merge-multiple : true
89-
90- - name : " Compile coverage data, print report"
91- run : |
92- nox --session coverage_combine
93- export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
94- echo "TOTAL=$TOTAL" >> $GITHUB_ENV
95- echo "### Total coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
23+ - name : " Define settings"
24+ run : " "
25+
26+ # run-tests-and-coverage:
27+ # name: "Run pytest with coverage."
28+ # needs: ["settings"]
29+ # runs-on: "${{ matrix.os }}"
30+ # strategy:
31+ # fail-fast: false
32+ # matrix:
33+ # os:
34+ # - "macos-latest"
35+ # - "windows-latest"
36+ # - "ubuntu-latest"
37+ # python-version:
38+ # - "3.9"
39+ # - "3.10"
40+ # - "3.11"
41+ # - "3.12"
42+ # - "3.13"
43+ # - "3.14"
44+
45+ # steps:
46+ # - name: "Repo checkout"
47+ # uses: "${{ needs.settings.outputs.gha-checkout }}"
48+
49+ # - name: "Set up Python ${{ matrix.python-version }}"
50+ # uses: "${{ needs.settings.outputs.gha-setup-python }}"
51+ # with:
52+ # python-version: "${{ matrix.python-version }}"
53+ # allow-prereleases: true
54+
55+ # - name: "Install nox"
56+ # run: |
57+ # python -m pip install --upgrade nox
58+
59+ # - name: "Run tests and coverage via nox"
60+ # run: |
61+ # nox --session test -- partial-coverage
62+
63+ # - name: "Save coverage artifact"
64+ # uses: "${{ needs.settings.outputs.gha-upload-artifact }}"
65+ # with:
66+ # name: "coverage-artifact-${{ matrix.os}}-${{ matrix.python-version}}"
67+ # path: ".coverage.*"
68+ # retention-days: 1
69+ # include-hidden-files: true
70+
71+ # coverage-compile:
72+ # name: "Compile coverage reports."
73+ # needs: ["settings", "run-tests-and-coverage"]
74+ # runs-on: "ubuntu-latest"
75+ # steps:
76+ # - name: "Repo checkout"
77+ # uses: "${{ needs.settings.outputs.gha-checkout }}"
78+
79+ # - name: "Set up Python"
80+ # uses: "${{ needs.settings.outputs.gha-setup-python }}"
81+ # with:
82+ # python-version: "${{ needs.settings.outputs.default-python-version }}"
83+
84+ # - name: "Install nox"
85+ # run: |
86+ # python -m pip install --upgrade nox
87+
88+ # - name: "Download coverage artifacts"
89+ # uses: "${{ needs.settings.outputs.gha-download-artifact }}"
90+ # with:
91+ # pattern: "coverage-artifact-*"
92+ # merge-multiple: true
93+
94+ # - name: "Compile coverage data, print report"
95+ # run: |
96+ # nox --session coverage_combine
97+ # export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
98+ # echo "TOTAL=$TOTAL" >> $GITHUB_ENV
99+ # echo "### Total coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
96100
97101 linting :
98102 name : " Check linting and formatting requirements"
0 commit comments