21
21
jobs :
22
22
nox :
23
23
runs-on : ubuntu-latest
24
- defaults :
25
- run :
26
- working-directory : antsibull-docutils
27
24
strategy :
28
25
fail-fast : false
29
26
matrix :
30
27
include :
31
28
- session : test
32
29
python-versions : " 3.9, 3.10, 3.11, 3.12, 3.13"
30
+ force-python : " "
33
31
codecov : true
34
32
packages : " "
35
33
docutils_version : " "
36
34
37
35
- session : test
38
36
python-versions : " 3.9, 3.10, 3.11, 3.12, 3.13"
37
+ force-python : " "
39
38
codecov : true
40
39
packages : " "
41
40
docutils_version : " 0.21.2"
42
41
43
42
- session : test
44
43
python-versions : " 3.9, 3.10, 3.11, 3.12, 3.13"
44
+ force-python : " "
45
45
codecov : true
46
46
packages : " "
47
47
docutils_version : " 0.20.1"
48
48
49
49
- session : test
50
50
python-versions : " 3.9, 3.10, 3.11, 3.12, 3.13"
51
+ force-python : " "
51
52
codecov : true
52
53
packages : " "
53
54
docutils_version : " 0.19"
54
55
55
56
- session : test
56
57
python-versions : " 3.9, 3.10, 3.11, 3.12, 3.13"
58
+ force-python : " "
57
59
codecov : true
58
60
packages : " "
59
61
docutils_version : " 0.18.1"
60
62
61
63
- session : lint
62
64
python-versions : " 3.13"
65
+ force-python : " 3.13"
63
66
codecov : false
64
67
packages : " "
65
68
docutils_version : " "
@@ -78,25 +81,17 @@ jobs:
78
81
if : " matrix.docutils_version != ''"
79
82
run : |
80
83
sed -i -e 's/"docutils"/"docutils == ${{ matrix.docutils_version }}"/g' pyproject.toml
84
+ working-directory : antsibull-docutils
81
85
- name : Setup nox
82
86
83
87
with :
84
88
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
98
91
with :
92
+ sessions : ${{ matrix.session }}
93
+ force-pythons : ${{ matrix.force-python }}
99
94
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