Skip to content

Commit 0fe3eca

Browse files
committed
Cache Conda env
1 parent d40c371 commit 0fe3eca

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/actions/build_pandas/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ runs:
66

77
- name: Environment Detail
88
run: |
9-
conda info
10-
conda list
9+
micromamba info
10+
micromamba list
1111
shell: bash -el {0}
1212

1313
- name: Build Pandas

.github/actions/setup-conda/action.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ runs:
2424
if: ${{ inputs.pyarrow-version }}
2525

2626
- name: Install ${{ inputs.environment-file }}
27-
uses: conda-incubator/setup-miniconda@v2.1.1
27+
uses: mamba-org/provision-with-micromamba@v12
2828
with:
2929
environment-file: ${{ inputs.environment-file }}
30-
activate-environment: ${{ inputs.environment-name }}
31-
python-version: ${{ inputs.python-version }}
32-
channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }}
30+
environment-name: ${{ inputs.environment-name }}
31+
extra-specs: |
32+
python =${{ inputs.python-version }}
3333
channels: conda-forge
34-
mamba-version: "0.24"
35-
use-mamba: true
36-
use-only-tar-bz2: true
34+
channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }}
3735
condarc-file: ci/condarc.yml
36+
cache-env: true

.github/workflows/sdist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Set up Conda
6363
uses: ./.github/actions/setup-conda
6464
with:
65-
environment-file: ""
65+
environment-file: false
6666
environment-name: pandas-sdist
6767
python-version: ${{ matrix.python-version }}
6868

0 commit comments

Comments
 (0)