Skip to content

Commit 3fc46cd

Browse files
authored
Use new run-nox action. (#10)
1 parent 349fdb6 commit 3fc46cd

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

.github/workflows/nox.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,48 @@ env:
2121
jobs:
2222
nox:
2323
runs-on: ubuntu-latest
24-
defaults:
25-
run:
26-
working-directory: antsibull-docutils
2724
strategy:
2825
fail-fast: false
2926
matrix:
3027
include:
3128
- session: test
3229
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13"
30+
force-python: ""
3331
codecov: true
3432
packages: ""
3533
docutils_version: ""
3634

3735
- session: test
3836
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13"
37+
force-python: ""
3938
codecov: true
4039
packages: ""
4140
docutils_version: "0.21.2"
4241

4342
- session: test
4443
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13"
44+
force-python: ""
4545
codecov: true
4646
packages: ""
4747
docutils_version: "0.20.1"
4848

4949
- session: test
5050
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13"
51+
force-python: ""
5152
codecov: true
5253
packages: ""
5354
docutils_version: "0.19"
5455

5556
- session: test
5657
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13"
58+
force-python: ""
5759
codecov: true
5860
packages: ""
5961
docutils_version: "0.18.1"
6062

6163
- session: lint
6264
python-versions: "3.13"
65+
force-python: "3.13"
6366
codecov: false
6467
packages: ""
6568
docutils_version: ""
@@ -78,25 +81,17 @@ jobs:
7881
if: "matrix.docutils_version != ''"
7982
run: |
8083
sed -i -e 's/"docutils"/"docutils == ${{ matrix.docutils_version }}"/g' pyproject.toml
84+
working-directory: antsibull-docutils
8185
- name: Setup nox
8286
uses: wntrblm/[email protected]
8387
with:
8488
python-versions: "${{ matrix.python-versions }}"
85-
- name: Set up nox environments
86-
run: |
87-
nox -v -e "${{ matrix.session }}" ${{ matrix.codecov && 'coverage' || '' }} --install-only
88-
- name: "Run nox -e ${{ matrix.session }}"
89-
run: |
90-
nox -v -e "${{ matrix.session }}" --reuse-existing-virtualenvs --no-install
91-
- name: Report coverage
92-
if: ${{ matrix.codecov }}
93-
run: |
94-
nox -v -e coverage --reuse-existing-virtualenvs --no-install
95-
- name: Upload coverage
96-
if: ${{ matrix.codecov }}
97-
uses: codecov/codecov-action@v5
89+
- name: Run nox
90+
uses: ansible-community/github-action-run-nox@v1
9891
with:
92+
sessions: ${{ matrix.session }}
93+
force-pythons: ${{ matrix.force-python }}
9994
working-directory: antsibull-docutils
100-
name: "${{ matrix.session }}"
101-
env:
102-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
95+
codecov: ${{ matrix.codecov }}
96+
codecov-session: coverage
97+
codecov-token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)