Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mbackenkoehler authored Jan 29, 2024
1 parent e7b7f8a commit 7de8c59
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,33 @@ jobs:
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
channels: conda-forge,defaults
use-mamba: true
auto-activate-base: true

- name: Cache Conda packages
uses: actions/cache@v3
with:
path: ~/.conda/pkgs
key: ${{ runner.os }}-conda-${{ hashFiles('**/environment.yml') }}
key: ${{ runner.os }}-conda-
restore-keys: |
${{ runner.os }}-conda-
- name: Install Conda environment
shell: bash -el {0}
run: |
conda env create -f environment.yml -n ${{ matrix.directory }}
mamba env create -f environment.yml -n ${{ matrix.directory }}
working-directory: teachopencadd/talktorials/${{ matrix.directory }}

- name: Activate Conda environment
shell: bash -el {0}
run: |
conda activate ${{ matrix.directory }}
mamba activate ${{ matrix.directory }}
- name: Install pytest
shell: bash -el {0}
run: conda install pytest -c conda-forge -y
run: mamba install pytest pytest-xdist pytest-cov nbval shyaml -c conda-forge -y

- name: Run tests
shell: bash -l {0}
Expand Down

0 comments on commit 7de8c59

Please sign in to comment.