Closed MikulasZelinka closed 1 year ago
When you don't specify anything, the action doesn't set up an environment.
You could do something like this:
name: Testing (pytest)
on: push
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1.1.0
- name: test 3.8
run: |
micromamba create -n 3.8 python=3.8 pytest
micromamba activate 3.8
pip install .
pytest
...
install the different envs in a shell using the matrix
From my understanding, this wouldn't work since a matrix always spawns a new runner where we need to install micromamba on. You could do this using a loop in bash, though.
Hello, I'd like to achieve the following:
micromamba
is setup once (and bash is initialised, as is already the default)I have this so far:
Now this works, however,
micromamba
is installed four times.For example, if there was a way to just not install any env when setting micromamba up, I could just set up micromamba once without the matrix and then manually install the different envs in a shell using the matrix.