diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 39d5998b4ee74..23bb988ef4d73 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -6,8 +6,8 @@ runs: - name: Environment Detail run: | - conda info - conda list + micromamba info + micromamba list shell: bash -el {0} - name: Build Pandas diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 87a0bd2ed1715..002d0020c2df1 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -6,8 +6,8 @@ inputs: environment-name: description: Name to use for the Conda environment default: test - python-version: - description: Python version to install + extra-specs: + description: Extra packages to install required: false pyarrow-version: description: If set, overrides the PyArrow version in the Conda environment to the given string. @@ -24,14 +24,13 @@ runs: if: ${{ inputs.pyarrow-version }} - name: Install ${{ inputs.environment-file }} - uses: conda-incubator/setup-miniconda@v2.1.1 + uses: mamba-org/provision-with-micromamba@v12 with: environment-file: ${{ inputs.environment-file }} - activate-environment: ${{ inputs.environment-name }} - python-version: ${{ inputs.python-version }} - channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }} + environment-name: ${{ inputs.environment-name }} + extra-specs: ${{ inputs.extra-specs }} channels: conda-forge - mamba-version: "0.24" - use-mamba: true - use-only-tar-bz2: true + channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }} condarc-file: ci/condarc.yml + cache-env: true + cache-downloads: true diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/asv-bot.yml index 022c12cf6ff6c..dbf0ab0acb9ec 100644 --- a/.github/workflows/asv-bot.yml +++ b/.github/workflows/asv-bot.yml @@ -33,12 +33,6 @@ jobs: with: fetch-depth: 0 - - name: Cache conda - uses: actions/cache@v3 - with: - path: ~/conda_pkgs_dir - key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }} - # Although asv sets up its own env, deps are still needed # during discovery process - name: Set up Conda diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index e8f54b33a92c0..85a7f26d7b505 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -52,12 +52,6 @@ jobs: with: fetch-depth: 0 - - name: Cache conda - uses: actions/cache@v3 - with: - path: ~/conda_pkgs_dir - key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }} - - name: Set up Conda uses: ./.github/actions/setup-conda @@ -115,12 +109,6 @@ jobs: with: fetch-depth: 0 - - name: Cache conda - uses: actions/cache@v3 - with: - path: ~/conda_pkgs_dir - key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }} - - name: Set up Conda uses: ./.github/actions/setup-conda diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 5ae2280c5069f..89312cdaaa80a 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -62,9 +62,10 @@ jobs: - name: Set up Conda uses: ./.github/actions/setup-conda with: - environment-file: "" + environment-file: false environment-name: pandas-sdist - python-version: ${{ matrix.python-version }} + extra-specs: | + python =${{ matrix.python-version }} - name: Install pandas from sdist run: | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 961ba57d36b94..8d6cae6278dcf 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -134,15 +134,6 @@ jobs: with: fetch-depth: 0 - - name: Cache conda - uses: actions/cache@v3 - env: - CACHE_NUMBER: 0 - with: - path: ~/conda_pkgs_dir - key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ - hashFiles('${{ env.ENV_FILE }}') }} - - name: Extra installs # xsel for clipboard tests run: sudo apt-get update && sudo apt-get install -y xsel ${{ env.EXTRA_APT }}