Skip to content

Commit

Permalink
Switch from setup-python to setup-micromamba
Browse files Browse the repository at this point in the history
Easier to install CuPy (without CUDA libs) from conda-forge instead of PyPI.
  • Loading branch information
weiji14 committed Jun 22, 2024
1 parent 3b7b2ec commit c1d53ab
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,35 @@ jobs:
matrix:
python-version: ["3.10", "3.12"]
os: [ubuntu-24.04]
defaults:
run:
shell: bash -l {0}

steps:
# Checkout current git repository
- name: Checkout
uses: actions/checkout@v4.1.7

# Install Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
# Install Micromamba with conda-forge dependencies
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1.9.0
with:
python-version: ${{ matrix.python-version }}
environment-name: cupy-xarray
condarc: |
channels:
- conda-forge
- nodefaults
create-args: >-
cupy-core
dask
pip
python=${{ matrix.python-version }}
pytest
xarray
# Install dependencies from requirements.txt file
- name: Install dependencies
run: |
python -m pip install --upgrade pip
CUPY_NO_CUDA=true python -m pip install .[test]
# Install the package that we want to test
- name: Install the package
run: python -m pip install .

# Run the unit tests
- name: Test with pytest
Expand Down

0 comments on commit c1d53ab

Please sign in to comment.