Skip to content

Commit 358eba3

Browse files
committed
DOC: Replace custom setup-conda with Miniconda to avoid micromamba spawn errors on macOS
1 parent 1a288f5 commit 358eba3

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ runs:
1111
- name: Install ${{ inputs.environment-file }}
1212
uses: mamba-org/setup-micromamba@v2
1313
with:
14-
micromamba-url: https://github.com/mamba-org/micromamba-releases/releases/latest/download/micromamba-linux-64
1514
environment-file: ${{ inputs.environment-file }}
1615
environment-name: test
1716
condarc-file: ci/.condarc
1817
cache-environment: true
1918
cache-downloads: true
20-
# avoid aggressive post-cleanup that can trigger JSON issues
21-
post-cleanup: none
19+
# keep post step simple to avoid JSON parsing problems
20+
post-cleanup: environment
2221

23-
- name: Uninstall pyarrow
22+
- name: Uninstall pyarrow (optional)
2423
if: ${{ env.REMOVE_PYARROW == '1' }}
2524
shell: bash -el {0}
2625
run: |

.github/workflows/unit-tests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,15 @@ jobs:
202202
with:
203203
fetch-depth: 0
204204

205-
- name: Set up Conda
206-
uses: ./.github/actions/setup-conda
205+
# Replaced custom setup-conda (micromamba) with setup-miniconda to avoid micromamba spawn errors on macOS
206+
- name: Set up Miniconda (avoid micromamba)
207+
uses: conda-incubator/setup-miniconda@v3
207208
with:
209+
auto-update-conda: true
210+
use-mamba: false
208211
environment-file: ci/deps/${{ matrix.env_file }}
212+
environment-name: pandas-ci
213+
activate-environment: pandas-ci
209214

210215
- name: Build Pandas
211216
uses: ./.github/actions/build_pandas
@@ -304,7 +309,7 @@ jobs:
304309
# To unfreeze, comment out the ``if: false`` condition, and make sure you update
305310
# the name of the workflow and Python version in actions/setup-python ``python-version:``
306311
#
307-
# After it has been unfrozen, this file should remain unfrozen(present, and running) until:
312+
# After it has been unfrozen, this file should remain unfrozen(present and running) until:
308313
# - The next Python version has been officially released.
309314
# OR
310315
# - Most/All of our optional dependencies support the next Python version AND
@@ -418,4 +423,4 @@ jobs:
418423
pip install pytest hypothesis
419424
# do not import pandas from the checked out repo
420425
cd ..
421-
python -c 'import pandas as pd; pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db"])'
426+
python -c 'import pandas as pd; pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db"])'

0 commit comments

Comments
 (0)