|
26 | 26 | jobs: |
27 | 27 | nox: |
28 | 28 | runs-on: ubuntu-latest |
29 | | - defaults: |
30 | | - run: |
31 | | - working-directory: antsibull-docs |
32 | 29 | strategy: |
33 | 30 | fail-fast: false |
34 | 31 | matrix: |
35 | 32 | include: |
36 | 33 | - session: test |
37 | 34 | python-versions: "3.9, 3.10, 3.11, 3.12, 3.13" |
| 35 | + force-python: "" |
38 | 36 | codecov: true |
39 | 37 | packages: "" |
40 | 38 |
|
41 | 39 | - session: lint |
42 | 40 | python-versions: "3.13" |
| 41 | + force-python: "3.13" |
43 | 42 | codecov: false |
44 | 43 | packages: "" |
45 | 44 | name: "Run nox ${{ matrix.session }} session" |
@@ -87,21 +86,12 @@ jobs: |
87 | 86 | uses: wntrblm/nox@2025.02.09 |
88 | 87 | with: |
89 | 88 | python-versions: "${{ matrix.python-versions }}" |
90 | | - - name: Set up nox environments |
91 | | - run: | |
92 | | - nox -v -e "${{ matrix.session }}" ${{ matrix.codecov && 'coverage' || '' }} --install-only |
93 | | - - name: "Run nox -e ${{ matrix.session }}" |
94 | | - run: | |
95 | | - nox -v -e "${{ matrix.session }}" --reuse-existing-virtualenvs --no-install |
96 | | - - name: Report coverage |
97 | | - if: ${{ matrix.codecov }} |
98 | | - run: | |
99 | | - nox -v -e coverage --reuse-existing-virtualenvs --no-install |
100 | | - - name: Upload coverage |
101 | | - if: ${{ matrix.codecov }} |
102 | | - uses: codecov/codecov-action@v5 |
| 89 | + - name: Run nox |
| 90 | + uses: ansible-community/github-action-run-nox@v1 |
103 | 91 | with: |
104 | | - name: "${{ matrix.session }}" |
| 92 | + sessions: ${{ matrix.session }} |
| 93 | + force-pythons: ${{ matrix.force-python }} |
105 | 94 | working-directory: antsibull-docs |
106 | | - env: |
107 | | - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 95 | + codecov: ${{ matrix.codecov }} |
| 96 | + codecov-session: coverage |
| 97 | + codecov-token: ${{ secrets.CODECOV_TOKEN }} |
0 commit comments