Skip to content

Commit d58d064

Browse files
committed
CI: share pandas setup steps
1 parent 37b5800 commit d58d064

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

.github/actions/setup/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
9+
- name: Checkout
10+
uses: actions/checkout@v1
11+
12+
- name: Setup environment and build pandas
13+
run: ci/setup_env.sh

.github/workflows/ci.yml

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

103-
- name: Setting conda path
104-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
105-
106-
- name: Checkout
107-
uses: actions/checkout@v1
108-
109-
- name: Setup environment and build pandas
110-
run: ci/setup_env.sh
103+
- name: Set up pandas
104+
uses: .github/actions/setup
111105

112106
- name: Build website
113107
run: |
@@ -144,14 +138,8 @@ jobs:
144138
runs-on: ubuntu-latest
145139
steps:
146140

147-
- name: Setting conda path
148-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
149-
150-
- name: Checkout
151-
uses: actions/checkout@v1
152-
153-
- name: Setup environment and build pandas
154-
run: ci/setup_env.sh
141+
- name: Set up pandas
142+
uses: .github/actions/setup
155143

156144
- name: Run tests
157145
run: |

0 commit comments

Comments
 (0)