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