Skip to content

Commit 0114bb9

Browse files
authored
Use new run-nox action. (#383)
1 parent ed8bb83 commit 0114bb9

1 file changed

Lines changed: 9 additions & 19 deletions

File tree

.github/workflows/nox.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,19 @@ env:
2626
jobs:
2727
nox:
2828
runs-on: ubuntu-latest
29-
defaults:
30-
run:
31-
working-directory: antsibull-docs
3229
strategy:
3330
fail-fast: false
3431
matrix:
3532
include:
3633
- session: test
3734
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13"
35+
force-python: ""
3836
codecov: true
3937
packages: ""
4038

4139
- session: lint
4240
python-versions: "3.13"
41+
force-python: "3.13"
4342
codecov: false
4443
packages: ""
4544
name: "Run nox ${{ matrix.session }} session"
@@ -87,21 +86,12 @@ jobs:
8786
uses: wntrblm/nox@2025.02.09
8887
with:
8988
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
10391
with:
104-
name: "${{ matrix.session }}"
92+
sessions: ${{ matrix.session }}
93+
force-pythons: ${{ matrix.force-python }}
10594
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

Comments
 (0)