@@ -23,53 +23,53 @@ jobs:
23
23
24
24
- name : Looking for unwanted patterns
25
25
run : ci/code_checks.sh patterns
26
- if : true
26
+ if : always()
27
27
28
28
- name : Setup environment and build pandas
29
29
run : ci/setup_env.sh
30
- if : true
30
+ if : always()
31
31
32
32
- name : Linting
33
33
run : |
34
34
source activate pandas-dev
35
35
ci/code_checks.sh lint
36
- if : true
36
+ if : always()
37
37
38
38
- name : Dependencies consistency
39
39
run : |
40
40
source activate pandas-dev
41
41
ci/code_checks.sh dependencies
42
- if : true
42
+ if : always()
43
43
44
44
- name : Checks on imported code
45
45
run : |
46
46
source activate pandas-dev
47
47
ci/code_checks.sh code
48
- if : true
48
+ if : always()
49
49
50
50
- name : Running doctests
51
51
run : |
52
52
source activate pandas-dev
53
53
ci/code_checks.sh doctests
54
- if : true
54
+ if : always()
55
55
56
56
- name : Docstring validation
57
57
run : |
58
58
source activate pandas-dev
59
59
ci/code_checks.sh docstrings
60
- if : true
60
+ if : always()
61
61
62
62
- name : Typing validation
63
63
run : |
64
64
source activate pandas-dev
65
65
ci/code_checks.sh typing
66
- if : true
66
+ if : always()
67
67
68
68
- name : Testing docstring validation script
69
69
run : |
70
70
source activate pandas-dev
71
71
pytest --capture=no --strict scripts
72
- if : true
72
+ if : always()
73
73
74
74
- name : Running benchmarks
75
75
run : |
@@ -87,11 +87,73 @@ jobs:
87
87
else
88
88
echo "Benchmarks did not run, no changes detected"
89
89
fi
90
- if : true
90
+ if : always()
91
91
92
92
- name : Publish benchmarks artifact
93
93
uses : actions/upload-artifact@master
94
94
with :
95
95
name : Benchmarks log
96
96
path : asv_bench/benchmarks.log
97
97
if : failure()
98
+
99
+ web_and_docs :
100
+ name : Web and docs
101
+ runs-on : ubuntu-latest
102
+ steps :
103
+
104
+ - name : Setting conda path
105
+ run : echo "::set-env name=PATH::${HOME}/miniconda3/bin:${PATH}"
106
+
107
+ - name : Checkout
108
+ uses : actions/checkout@v1
109
+
110
+ - name : Setup environment and build pandas
111
+ run : ci/setup_env.sh
112
+
113
+ - name : Build website
114
+ run : |
115
+ source activate pandas-dev
116
+ python web/pandas_web.py web/pandas --target-path=web/build
117
+
118
+ - name : Build documentation
119
+ run : |
120
+ source activate pandas-dev
121
+ doc/make.py --warnings-are-errors | tee sphinx.log ; exit ${PIPESTATUS[0]}
122
+
123
+ # This can be removed when the ipython directive fails when there are errors,
124
+ # including the `tee sphinx.log` in te previous step (https://github.com/ipython/ipython/issues/11547)
125
+ - name : Check ipython directive errors
126
+ run : " ! grep -B1 \" ^<<<-------------------------------------------------------------------------$\" sphinx.log"
127
+
128
+ - name : Merge website and docs
129
+ run : |
130
+ mkdir -p pandas_web/docs
131
+ cp -r web/build/* pandas_web/
132
+ cp -r doc/build/html/* pandas_web/docs/
133
+ if : github.event_name == 'push'
134
+
135
+ - name : Install Rclone
136
+ run : sudo apt install rclone -y
137
+ if : github.event_name == 'push'
138
+
139
+ - name : Set up Rclone
140
+ run : |
141
+ RCLONE_CONFIG_PATH=$HOME/.config/rclone/rclone.conf
142
+ mkdir -p `dirname $RCLONE_CONFIG_PATH`
143
+ echo "[ovh_cloud_pandas_web]" > $RCLONE_CONFIG_PATH
144
+ echo "type = swift" >> $RCLONE_CONFIG_PATH
145
+ echo "env_auth = false" >> $RCLONE_CONFIG_PATH
146
+ echo "auth_version = 3" >> $RCLONE_CONFIG_PATH
147
+ echo "auth = https://auth.cloud.ovh.net/v3/" >> $RCLONE_CONFIG_PATH
148
+ echo "endpoint_type = public" >> $RCLONE_CONFIG_PATH
149
+ echo "tenant_domain = default" >> $RCLONE_CONFIG_PATH
150
+ echo "tenant = 2977553886518025" >> $RCLONE_CONFIG_PATH
151
+ echo "domain = default" >> $RCLONE_CONFIG_PATH
152
+ echo "user = w4KGs3pmDxpd" >> $RCLONE_CONFIG_PATH
153
+ echo "key = ${{ secrets.ovh_object_store_key }}" >> $RCLONE_CONFIG_PATH
154
+ echo "region = BHS" >> $RCLONE_CONFIG_PATH
155
+ if : github.event_name == 'push'
156
+
157
+ - name : Sync web
158
+ run : rclone sync pandas_web ovh_cloud_pandas_web:dev
159
+ if : github.event_name == 'push'
0 commit comments