1111 - 1.4.x
1212
1313env :
14- ENV_FILE : environment.yml
1514 PANDAS_CI : 1
1615
1716jobs :
@@ -52,20 +51,11 @@ jobs:
5251 with :
5352 fetch-depth : 0
5453
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
6056
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
6959
7060 - name : Install node.js (for pyright)
7161 uses : actions/setup-node@v2
@@ -76,29 +66,20 @@ jobs:
7666 # note: keep version in sync with .pre-commit-config.yaml
7767 run :
npm install -g [email protected] 7868
79- - name : Build Pandas
80- id : build
81- uses : ./.github/actions/build_pandas
82-
8369 - name : Run checks on imported code
8470 run : ci/code_checks.sh code
85- if : ${{ steps.build.outcome == 'success' }}
8671
8772 - name : Run doctests
8873 run : ci/code_checks.sh doctests
89- if : ${{ steps.build.outcome == 'success' }}
9074
9175 - name : Run docstring validation
9276 run : ci/code_checks.sh docstrings
93- if : ${{ steps.build.outcome == 'success' }}
9477
9578 - name : Run typing validation
9679 run : ci/code_checks.sh typing
97- if : ${{ steps.build.outcome == 'success' }}
9880
9981 - name : Run docstring validation script tests
10082 run : pytest scripts
101- if : ${{ steps.build.outcome == 'success' }}
10283
10384 asv-benchmarks :
10485 name : ASV Benchmarks
@@ -118,24 +99,11 @@ jobs:
11899 with :
119100 fetch-depth : 0
120101
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
135104
136105 - name : Build Pandas
137- id : build
138- uses : ./.github/actions/build_pandas
106+ uses : ./.github/actions/build-pandas
139107
140108 - name : Run ASV benchmarks
141109 run : |
@@ -148,7 +116,6 @@ jobs:
148116 if grep "failed" benchmarks.log > /dev/null ; then
149117 exit 1
150118 fi
151- if : ${{ steps.build.outcome == 'success' }}
152119
153120 - name : Publish benchmarks artifact
154121 uses : actions/upload-artifact@v2
0 commit comments