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,11 @@ 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
69
59
70
60
- name : Install node.js (for pyright)
71
61
uses : actions/setup-node@v2
@@ -76,29 +66,20 @@ jobs:
76
66
# note: keep version in sync with .pre-commit-config.yaml
77
67
run :
npm install -g [email protected]
78
68
79
- - name : Build Pandas
80
- id : build
81
- uses : ./.github/actions/build_pandas
82
-
83
69
- name : Run checks on imported code
84
70
run : ci/code_checks.sh code
85
- if : ${{ steps.build.outcome == 'success' }}
86
71
87
72
- name : Run doctests
88
73
run : ci/code_checks.sh doctests
89
- if : ${{ steps.build.outcome == 'success' }}
90
74
91
75
- name : Run docstring validation
92
76
run : ci/code_checks.sh docstrings
93
- if : ${{ steps.build.outcome == 'success' }}
94
77
95
78
- name : Run typing validation
96
79
run : ci/code_checks.sh typing
97
- if : ${{ steps.build.outcome == 'success' }}
98
80
99
81
- name : Run docstring validation script tests
100
82
run : pytest scripts
101
- if : ${{ steps.build.outcome == 'success' }}
102
83
103
84
asv-benchmarks :
104
85
name : ASV Benchmarks
@@ -118,24 +99,11 @@ jobs:
118
99
with :
119
100
fetch-depth : 0
120
101
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
102
+ - name : Set up Conda
103
+ uses : ./.github/actions/setup
135
104
136
105
- name : Build Pandas
137
- id : build
138
- uses : ./.github/actions/build_pandas
106
+ uses : ./.github/actions/build-pandas
139
107
140
108
- name : Run ASV benchmarks
141
109
run : |
@@ -148,7 +116,6 @@ jobs:
148
116
if grep "failed" benchmarks.log > /dev/null ; then
149
117
exit 1
150
118
fi
151
- if : ${{ steps.build.outcome == 'success' }}
152
119
153
120
- name : Publish benchmarks artifact
154
121
uses : actions/upload-artifact@v2
0 commit comments