Copy generated mamba.bat to micromamba.bat to workaround cmd.exe Auto… #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test download | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
merge_group: | |
jobs: | |
ensure-download: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
echo "exit 1" >> micromamba | |
sudo cp micromamba /usr/bin/micromamba | |
sudo chmod +x /usr/bin/micromamba | |
- uses: ./ | |
with: | |
environment-name: test | |
create-args: >- | |
python | |
download-micromamba: true | |
- run: | | |
micromamba --version | |
ensure-local-default: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
curl -Ls https://github.com/mamba-org/micromamba-releases/releases/latest/download/micromamba-linux-64 > micromamba | |
sudo cp micromamba /usr/bin/micromamba | |
sudo chmod +x /usr/bin/micromamba | |
- uses: ./ | |
with: | |
environment-name: test | |
create-args: >- | |
python | |
micromamba-url: https://invalid.domain |