@@ -20,7 +20,7 @@ permissions:
20
20
jobs :
21
21
pre_commit :
22
22
name : pre-commit
23
- runs-on : ubuntu-latest
23
+ runs-on : ubuntu-22.04
24
24
concurrency :
25
25
# https://github.community/t/concurrecy-not-work-for-push/183068/7
26
26
group : ${{ github.event_name == 'push' && github.run_number || github.ref }}-pre-commit
@@ -30,16 +30,18 @@ jobs:
30
30
uses : actions/checkout@v3
31
31
32
32
- name : Install Python
33
- uses : actions/setup-python@v3
33
+ uses : actions/setup-python@v4
34
34
with :
35
- python-version : ' 3.9.7 '
35
+ python-version : ' 3.9'
36
36
37
37
- name : Run pre-commit
38
38
uses :
pre-commit/[email protected]
39
+ with :
40
+ extra_args : --verbose --all-files
39
41
40
- typing_and_docstring_validation :
41
- name : Docstring and typing validation
42
- runs-on : ubuntu-latest
42
+ docstring_typing_pylint :
43
+ name : Docstring validation, typing, and pylint
44
+ runs-on : ubuntu-22.04
43
45
defaults :
44
46
run :
45
47
shell : bash -el {0}
79
81
run : ci/code_checks.sh docstrings
80
82
if : ${{ steps.build.outcome == 'success' && always() }}
81
83
84
+ - name : Run check of documentation notebooks
85
+ run : ci/code_checks.sh notebooks
86
+ if : ${{ steps.build.outcome == 'success' && always() }}
87
+
82
88
- name : Use existing environment for type checking
83
89
run : |
84
90
echo $PATH >> $GITHUB_PATH
89
95
- name : Typing + pylint
90
96
uses :
pre-commit/[email protected]
91
97
with :
92
- extra_args : --hook-stage manual --all-files
98
+ extra_args : --verbose -- hook-stage manual --all-files
93
99
if : ${{ steps.build.outcome == 'success' && always() }}
94
100
95
101
- name : Run docstring validation script tests
98
104
99
105
asv-benchmarks :
100
106
name : ASV Benchmarks
101
- runs-on : ubuntu-latest
107
+ runs-on : ubuntu-22.04
102
108
defaults :
103
109
run :
104
110
shell : bash -el {0}
@@ -129,7 +135,7 @@ jobs:
129
135
130
136
build_docker_dev_environment :
131
137
name : Build Docker Dev Environment
132
- runs-on : ubuntu-latest
138
+ runs-on : ubuntu-22.04
133
139
defaults :
134
140
run :
135
141
shell : bash -el {0}
@@ -152,11 +158,11 @@ jobs:
152
158
run : docker build --pull --no-cache --tag pandas-dev-env .
153
159
154
160
- name : Show environment
155
- run : docker run -w /home/ pandas pandas -dev-env mamba run -n pandas-dev python -c "import pandas as pd; print(pd.show_versions())"
161
+ run : docker run --rm pandas-dev-env python -c "import pandas as pd; print(pd.show_versions())"
156
162
157
163
requirements-dev-text-installable :
158
164
name : Test install requirements-dev.txt
159
- runs-on : ubuntu-latest
165
+ runs-on : ubuntu-22.04
160
166
161
167
concurrency :
162
168
# https://github.community/t/concurrecy-not-work-for-push/183068/7
@@ -171,7 +177,7 @@ jobs:
171
177
172
178
- name : Setup Python
173
179
id : setup_python
174
- uses : actions/setup-python@v3
180
+ uses : actions/setup-python@v4
175
181
with :
176
182
python-version : ' 3.8'
177
183
cache : ' pip'
0 commit comments