Skip to content

Commit f8b497a

Browse files
use action
1 parent db01008 commit f8b497a

File tree

2 files changed

+25
-29
lines changed

2 files changed

+25
-29
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Update Conda'
2+
description: 'Prepare conda environment'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Setting conda path
7+
run: echo ::add-path::$CONDA/bin
8+
shell: bash
9+
- name: Update conda
10+
run: |
11+
conda config --set quiet true --set always_yes true
12+
conda update -n base -c defaults conda
13+
conda list
14+
shell: bash

.github/workflows/manual.yml

+11-29
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,10 @@ jobs:
3333
run: |
3434
git config --global user.email "[email protected]"
3535
git config --global user.name "Pandas Development Team"
36-
- name: Setting conda path
37-
run: echo ::add-path::$CONDA/bin
38-
- name: Update conda
39-
run: |
40-
conda config --set quiet true --set always_yes true
41-
conda update -n base -c defaults conda
42-
conda list
4336
- name: Checkout pandas-release
4437
uses: actions/checkout@v2
38+
- name: Update conda
39+
uses: ./.github/actions/update-conda
4540
- name: Update conda environment for release process
4641
run: |
4742
conda env update -n base --file=environment.yml
@@ -83,20 +78,15 @@ jobs:
8378
sudo apt-get update
8479
sudo apt-get install -y build-essential
8580
sudo apt-get clean
86-
- name: Setting conda path
87-
run: echo ::add-path::$CONDA/bin
81+
- name: Checkout pandas-release
82+
uses: actions/checkout@v2
8883
- name: Update conda
89-
run: |
90-
conda config --set quiet true --set always_yes true
91-
conda update -n base -c defaults conda
92-
conda list
84+
uses: ./.github/actions/update-conda
9385
- name: Update conda environment for build process
9486
run: |
9587
conda install -y conda-build conda-verify gcc_linux-64 gxx_linux-64 numpy pytz python-dateutil nomkl Cython
9688
conda clean --all
9789
conda list
98-
- name: Checkout pandas-release
99-
uses: actions/checkout@v2
10090
- name: get pandas directory from artifacts
10191
uses: actions/download-artifact@v2
10292
with:
@@ -123,13 +113,10 @@ jobs:
123113
needs: build-sdist
124114
runs-on: ubuntu-latest
125115
steps:
126-
- name: Setting conda path
127-
run: echo ::add-path::$CONDA/bin
116+
- name: Checkout pandas-release
117+
uses: actions/checkout@v2
128118
- name: Update conda
129-
run: |
130-
conda config --set quiet true --set always_yes true
131-
conda update -n base -c defaults conda
132-
conda list
119+
uses: ./.github/actions/update-conda
133120
- name: Create conda environment
134121
run: |
135122
conda create -n pip-test -y python=3.7 numpy pytz python-dateutil pytest pytest-mock hypothesis nomkl
@@ -162,20 +149,15 @@ jobs:
162149
env:
163150
PANDAS_VERSION: ${{ github.event.inputs.version }}
164151
steps:
165-
- name: Setting conda path
166-
run: echo ::add-path::$CONDA/bin
152+
- name: Checkout pandas-release
153+
uses: actions/checkout@v2
167154
- name: Update conda
168-
run: |
169-
conda config --set quiet true --set always_yes true
170-
conda update -n base -c defaults conda
171-
conda list
155+
uses: ./.github/actions/update-conda
172156
- name: Create conda environment
173157
run: |
174158
conda create -n conda-build -y conda-build conda-verify gcc_linux-64 gxx_linux-64
175159
conda clean --all
176160
conda list
177-
- name: Checkout pandas-release
178-
uses: actions/checkout@v2
179161
- name: get sdist from artifacts
180162
uses: actions/download-artifact@v2
181163
with:

0 commit comments

Comments
 (0)