Skip to content

Commit

Permalink
Switch to setup-micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Sep 29, 2024
1 parent 4f51cb5 commit 55170ba
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- "*"

defaults:
run:
shell: bash -l {0}

jobs:
run:
runs-on: ${{ matrix.os }}
Expand All @@ -21,22 +25,23 @@ jobs:
PYTHON: ${{ matrix.py_ver }}
steps:
- uses: actions/checkout@master
- uses: conda-incubator/setup-[email protected]
- uses: mamba-org/setup-micromamba@v1
with:
auto-update-conda: true
channels: conda-forge,defaults
channel-priority: true
python-version: ${{ matrix.py_ver }}
####
# https://github.com/mamba-org/setup-micromamba/issues/225
micromamba-version: 1.5.10-0
micromamba-binary-path: /home/runner/micromamba-bin-versioned/micromamba
####
environment-file: environment.yaml
activate-environment: gs
create-args: >-
"python =${{ matrix.py_ver }}"
cache-environment: true
- name: Conda info
shell: bash -l {0}
run: |
conda info --all
conda list
- name: Running doctests
shell: bash -l {0}
run: |
pytest grayskull \
-vv \
Expand All @@ -51,7 +56,6 @@ jobs:
--junit-prefix=Linux-py${{ matrix.py_ver }}-serial
- name: Running serial tests
shell: bash -l {0}
run: |
pytest tests \
-vv \
Expand All @@ -67,7 +71,6 @@ jobs:
--junit-prefix=Linux-py${{ matrix.py_ver }}-serial
- name: Running parallel tests
shell: bash -l {0}
run: |
pytest tests \
-vv \
Expand Down

0 comments on commit 55170ba

Please sign in to comment.