Skip to content

Commit 97ee012

Browse files
authored
Python 3.7 no longer works on ubuntu-24.04. (#64)
1 parent 9074d1c commit 97ee012

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

.github/workflows/nox.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
matrix:
3030
include:
3131
- session: test
32-
python-versions: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
33-
other-args: "-p 3.7 3.8 3.9 3.10 3.11 3.12 3.13"
32+
python-versions: "3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
33+
other-args: "-p 3.8 3.9 3.10 3.11 3.12 3.13"
3434
codecov: true
3535
packages: ""
3636

@@ -79,9 +79,44 @@ jobs:
7979
working-directory: antsibull-docs-parser
8080
env:
8181
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
82+
nox-test-37:
83+
# python3.7 is not available on ubuntu-latest
84+
runs-on: ubuntu-22.04
85+
name: "Run nox test session (Python 3.7)"
86+
defaults:
87+
run:
88+
working-directory: antsibull-docs-parser
89+
steps:
90+
- name: Check out antsibull-docs-parser
91+
uses: actions/checkout@v4
92+
with:
93+
path: antsibull-docs-parser
94+
persist-credentials: false
95+
- name: Setup nox
96+
uses: wntrblm/[email protected]
97+
with:
98+
python-versions: "3.7"
99+
- name: Set up nox environments
100+
run: |
101+
nox -v -e "test" -p 3.7 --install-only
102+
nox -v -e coverage --install-only
103+
- name: "Run nox -e test -p 3.7"
104+
run: |
105+
nox -v -e "test" -p 3.7 --reuse-existing-virtualenvs --no-install
106+
- name: Report coverage
107+
run: |
108+
nox -v -e coverage --reuse-existing-virtualenvs --no-install
109+
- name: Upload coverage
110+
uses: codecov/codecov-action@v5
111+
with:
112+
name: "test"
113+
working-directory: antsibull-docs-parser
114+
env:
115+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
82116
nox-test-36:
83117
# python3.6 is not available on ubuntu-latest
84118
runs-on: ubuntu-20.04
119+
name: "Run nox test session (Python 3.6)"
85120
defaults:
86121
run:
87122
working-directory: antsibull-docs-parser

0 commit comments

Comments
 (0)