Skip to content

Commit d5bb66f

Browse files
committed
CI: share pandas setup steps
1 parent a5ecf22 commit d5bb66f

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/actions/setup/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Set up pandas
2+
description: Runs all the setup steps required to have a built pandas ready to use
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Setting conda path
7+
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
8+
shell: bash -l {0}
9+
10+
- name: Setup environment and build pandas
11+
run: ci/setup_env.sh
12+
shell: bash -l {0}

.github/workflows/ci.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,11 @@ jobs:
100100
runs-on: ubuntu-latest
101101
steps:
102102

103-
- name: Setting conda path
104-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
105-
106103
- name: Checkout
107104
uses: actions/checkout@v1
108105

109-
- name: Setup environment and build pandas
110-
run: ci/setup_env.sh
106+
- name: Set up pandas
107+
uses: ./.github/actions/setup
111108

112109
- name: Build website
113110
run: |
@@ -144,14 +141,11 @@ jobs:
144141
runs-on: ubuntu-latest
145142
steps:
146143

147-
- name: Setting conda path
148-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
149-
150144
- name: Checkout
151145
uses: actions/checkout@v1
152146

153-
- name: Setup environment and build pandas
154-
run: ci/setup_env.sh
147+
- name: Set up pandas
148+
uses: ./.github/actions/setup
155149

156150
- name: Run tests
157151
run: |

0 commit comments

Comments
 (0)