11
11
- 1.4.x
12
12
13
13
env :
14
- ENV_FILE : environment.yml
15
14
PANDAS_CI : 1
16
15
17
16
jobs :
@@ -52,20 +51,13 @@ jobs:
52
51
with :
53
52
fetch-depth : 0
54
53
55
- - name : Cache conda
56
- uses : actions/cache@v2
57
- with :
58
- path : ~/conda_pkgs_dir
59
- key : ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
54
+ - name : Set up Conda
55
+ uses : ./.github/actions/setup
60
56
61
- - uses : conda-incubator/setup-miniconda@v2
62
- with :
63
- mamba-version : " *"
64
- channels : conda-forge
65
- activate-environment : pandas-dev
66
- channel-priority : strict
67
- environment-file : ${{ env.ENV_FILE }}
68
- use-only-tar-bz2 : true
57
+ - name : Build Pandas
58
+ uses : ./.github/actions/build-pandas
59
+ id : build
60
+ continue-on-error : true
69
61
70
62
- name : Install node.js (for pyright)
71
63
uses : actions/setup-node@v2
76
68
# note: keep version in sync with .pre-commit-config.yaml
77
69
run :
npm install -g [email protected]
78
70
79
- - name : Build Pandas
80
- id : build
81
- uses : ./.github/actions/build_pandas
82
-
83
71
- name : Run checks on imported code
84
72
run : ci/code_checks.sh code
85
73
if : ${{ steps.build.outcome == 'success' }}
94
82
95
83
- name : Run typing validation
96
84
run : ci/code_checks.sh typing
97
- if : ${{ steps.build.outcome == 'success' }}
98
85
99
86
- name : Run docstring validation script tests
100
87
run : pytest scripts
101
- if : ${{ steps.build.outcome == 'success' }}
102
88
103
89
asv-benchmarks :
104
90
name : ASV Benchmarks
@@ -118,24 +104,11 @@ jobs:
118
104
with :
119
105
fetch-depth : 0
120
106
121
- - name : Cache conda
122
- uses : actions/cache@v2
123
- with :
124
- path : ~/conda_pkgs_dir
125
- key : ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
126
-
127
- - uses : conda-incubator/setup-miniconda@v2
128
- with :
129
- mamba-version : " *"
130
- channels : conda-forge
131
- activate-environment : pandas-dev
132
- channel-priority : strict
133
- environment-file : ${{ env.ENV_FILE }}
134
- use-only-tar-bz2 : true
107
+ - name : Set up Conda
108
+ uses : ./.github/actions/setup
135
109
136
110
- name : Build Pandas
137
- id : build
138
- uses : ./.github/actions/build_pandas
111
+ uses : ./.github/actions/build-pandas
139
112
140
113
- name : Run ASV benchmarks
141
114
run : |
@@ -148,7 +121,6 @@ jobs:
148
121
if grep "failed" benchmarks.log > /dev/null ; then
149
122
exit 1
150
123
fi
151
- if : ${{ steps.build.outcome == 'success' }}
152
124
153
125
- name : Publish benchmarks artifact
154
126
uses : actions/upload-artifact@v2
0 commit comments