11
11
- " maintenance/**"
12
12
13
13
env :
14
- CACHE_VERSION : 2
14
+ CACHE_VERSION : 3
15
15
KEY_PREFIX : base-venv
16
16
DEFAULT_PYTHON : " 3.13"
17
17
PRE_COMMIT_CACHE : ~/.cache/pre-commit
36
36
37
37
- name : Set up Python ${{ env.DEFAULT_PYTHON }}
38
38
id : python
39
- uses : actions/setup-python@v5.4 .0
39
+ uses : actions/setup-python@v5.6 .0
40
40
with :
41
41
python-version : ${{ env.DEFAULT_PYTHON }}
42
42
check-latest : true
49
49
$GITHUB_OUTPUT
50
50
- name : Restore Python virtual environment
51
51
id : cache-venv
52
-
52
+
53
53
with :
54
54
path : venv
55
55
key : >-
60
60
run : |
61
61
python -m venv venv
62
62
. venv/bin/activate
63
- python -m pip install -U pip setuptools wheel
64
- pip install -U -r requirements_test.txt
65
- pip install -U -r doc/requirements.txt
63
+ python -m pip install --upgrade pip setuptools wheel
64
+ pip install --upgrade --requirement requirements_test.txt --requirement doc/requirements.txt
66
65
pip install pre-commit
67
66
- name : Generate pre-commit restore key
68
67
id : generate-pre-commit-key
71
70
hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
72
71
- name : Restore pre-commit environment
73
72
id : cache-precommit
74
-
73
+
75
74
with :
76
75
path : ${{ env.PRE_COMMIT_CACHE }}
77
76
key : >-
@@ -92,13 +91,13 @@ jobs:
92
91
93
92
- name : Set up Python ${{ env.DEFAULT_PYTHON }}
94
93
id : python
95
- uses : actions/setup-python@v5.4 .0
94
+ uses : actions/setup-python@v5.6 .0
96
95
with :
97
96
python-version : ${{ env.DEFAULT_PYTHON }}
98
97
check-latest : true
99
98
- name : Restore Python virtual environment
100
99
id : cache-venv
101
-
100
+
102
101
with :
103
102
path : venv
104
103
fail-on-cache-miss : true
@@ -107,7 +106,7 @@ jobs:
107
106
needs.prepare-base.outputs.python-key }}
108
107
- name : Restore pre-commit environment
109
108
id : cache-precommit
110
-
109
+
111
110
with :
112
111
path : ${{ env.PRE_COMMIT_CACHE }}
113
112
fail-on-cache-miss : true
@@ -133,13 +132,13 @@ jobs:
133
132
134
133
- name : Set up Python ${{ env.DEFAULT_PYTHON }}
135
134
id : python
136
- uses : actions/setup-python@v5.4 .0
135
+ uses : actions/setup-python@v5.6 .0
137
136
with :
138
137
python-version : ${{ env.DEFAULT_PYTHON }}
139
138
check-latest : true
140
139
- name : Restore Python virtual environment
141
140
id : cache-venv
142
-
141
+
143
142
with :
144
143
path : venv
145
144
fail-on-cache-miss : true
@@ -161,13 +160,13 @@ jobs:
161
160
162
161
- name : Set up Python ${{ env.DEFAULT_PYTHON }}
163
162
id : python
164
- uses : actions/setup-python@v5.4 .0
163
+ uses : actions/setup-python@v5.6 .0
165
164
with :
166
165
python-version : ${{ env.DEFAULT_PYTHON }}
167
166
check-latest : true
168
167
- name : Restore Python virtual environment
169
168
id : cache-venv
170
-
169
+
171
170
with :
172
171
path : venv
173
172
fail-on-cache-miss : true
@@ -181,11 +180,10 @@ jobs:
181
180
- name : Check documentation build and links
182
181
run : |
183
182
. venv/bin/activate
184
- cd doc
185
- pre-commit run --hook-stage push sphinx-generated-doc --all-files || {
183
+ tox -e docs || {
186
184
echo "git diff:" ; \
187
185
git diff ; \
188
186
echo "End of 'git diff'" ; \
189
- echo "Make sure that 'make html ' succeed without any modifications locally." ; \
187
+ echo "Make sure that 'tox -e docs ' succeed without any modifications locally." ; \
190
188
exit 1; \
191
189
}
0 commit comments