Skip to content

Commit

Permalink
use mambaforge for CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-rose committed Jul 6, 2023
1 parent 4623275 commit ea4516d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-and-test.yml
Expand Up @@ -32,20 +32,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2

- name: Setup Python environment with Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: ${{ matrix.python-version }}
activate-environment: test_env
channel-priority: strict
environment-file: ${{ matrix.environment-file }}
use-mamba: true

- name: Build and install climlab
run: |
python -m pip install --no-deps --editable .
- name: Import climlab
run: |
python -c "import climlab"
- name: Run tests
run: |
pytest -v --pyargs climlab.tests
Expand Down

0 comments on commit ea4516d

Please sign in to comment.