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