Skip to content

Commit

Permalink
[ci] call micromamba, not mamba; fail faster
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Dec 5, 2023
1 parent 5792507 commit dceefa4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
defaults:
run:
# this is needed, because otherwise conda env is not available
shell: bash -l {0}
shell: bash -leo pipefail {0} {0}

steps:
- name: Install build dependencies
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Install python dependencies
run: |
mamba install -c conda-forge --file conda-requirements.txt python=${{ matrix.python-version }} corner coveralls numpy
micromamba install -c conda-forge --file conda-requirements.txt python=${{ matrix.python-version }} corner coveralls numpy
pip install git+https://github.com/JohannesBuchner/coverage-lcov
#sed --in-place -e 's,"report_include",,g' -e 's,"report_omit",,g' /usr/share/miniconda/envs/*/lib/python*/site-packages/coverage_lcov/converter.py
conda list
Expand Down Expand Up @@ -124,18 +124,19 @@ jobs:
defaults:
run:
# this is needed, because otherwise conda env is not available
shell: bash -l {0}
shell: bash -leo pipefail {0} {0}

steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
with:
cache-environment: false
cache-downloads: true
environment-name: test
environment-file: conda-requirements.txt

- name: Install dependencies
run: mamba install -c conda-forge --quiet multinest
run: micromamba install -c conda-forge --quiet multinest

- name: Test imports
run: |
Expand Down

0 comments on commit dceefa4

Please sign in to comment.