Skip to content

Commit

Permalink
ci: switch mambaforge to miniforge, explicitly install Python
Browse files Browse the repository at this point in the history
- Mambaforge is deprecated.
- System `pip` in the runners now requires a scary flag to install
  packages.  Install our own Python explicitly instead.

Fixes apache#2257.
  • Loading branch information
lidavidm committed Oct 15, 2024
1 parent baed36b commit 6a9ac3d
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 20 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -123,7 +122,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -201,7 +199,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -323,7 +320,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/native-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -178,7 +177,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -296,7 +294,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -346,7 +343,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -479,7 +475,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -572,7 +567,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -695,7 +689,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/native-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: Install Dependencies
Expand Down Expand Up @@ -135,7 +134,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: Install Dependencies
Expand Down Expand Up @@ -212,7 +210,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: Install Dependencies
Expand Down Expand Up @@ -280,7 +277,6 @@ jobs:
key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: Install Dependencies
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/nightly-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ jobs:
# The Unix script will set up conda itself
if: matrix.os == 'windows-latest'
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nightly-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ jobs:
with:
name: docs
path: temp
# To use pip below, we need to install our own Python; the system Python's
# pip won't let us install packages without a scary flag.
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Build
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down Expand Up @@ -1036,7 +1035,6 @@ jobs:
path: conda-packages
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: false
use-mamba: true
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ jobs:
# The Unix script will set up conda itself
if: matrix.os == 'windows-latest'
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: Work around ASAN issue (GH-1617)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
############################ Documentation ###################################

docs:
image: condaforge/mambaforge:latest
image: condaforge/miniforge3:latest
volumes:
- .:/adbc:delegated
environment:
Expand Down

0 comments on commit 6a9ac3d

Please sign in to comment.