Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): switch to miniforge #1304

Merged
merged 8 commits into from
Sep 26, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Required for miniconda to activate conda
defaults:
run:
shell: bash -l {0}

jobs:
build:
strategy:
Expand All @@ -21,11 +26,6 @@ jobs:
runs-on: ${{ matrix.platform }}
timeout-minutes: 30

# Required for miniconda to activate conda
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4

Expand All @@ -34,14 +34,16 @@ jobs:
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
use-mamba: true
miniforge-version: latest

- name: Check active Python version
run: python -c "import sys; assert '.'.join(str(s) for s in sys.version_info[:2]) == '${{ matrix.python-version }}', f'{version} incorrect!'"
ariostas marked this conversation as resolved.
Show resolved Hide resolved

- name: Install ROOT
if: matrix.python-version == 3.8 && runner.os != 'macOS' && runner.os != 'Windows'
run: |
conda env list
mamba install root
conda install root
conda list

- name: Install sshd for fsspec ssh tests
Expand All @@ -59,7 +61,7 @@ jobs:
if: runner.os != 'macOS' && runner.os != 'Windows'
run: |
conda env list
mamba install xrootd
conda install xrootd
conda list

- name: Pip install the package
Expand Down
Loading