Skip to content

Commit

Permalink
pin micromamba default version to 1.* (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Oct 3, 2024
1 parent 59b1132 commit 4b9113a
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./
with:
micromamba-version: 2.0.2-0
- run: |
micromamba info | grep -q "environment : base"
shell: bash -el {0}
Expand Down Expand Up @@ -168,6 +170,7 @@ jobs:
with:
environment-file: 'test/environment.yml'
condarc-file: 'test/.condarc'
micromamba-version: 2.0.2-0
- run: | # this should only work when the pytorch channel is loaded, i.e., the custom condarc is used
micromamba search pytorch=2.0.0
micromamba search pytorch=2.0.0 | grep -q "pytorch 2.0.0 py3.10_cpu_0"
Expand Down
70 changes: 70 additions & 0 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-micromamba",
"version": "1.10.0",
"version": "1.11.0",
"private": true,
"description": "Action to setup micromamba",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const inferOptions = (inputs: Inputs): Options => {
// if micromambaUrl is specified, use that, otherwise use micromambaVersion (or 'latest' if not specified)
const micromambaSource = inputs.micromambaUrl
? right(inputs.micromambaUrl)
: left(inputs.micromambaVersion || 'latest')
: left(inputs.micromambaVersion || '1.5.10-0')

// we write to condarc if a condarc file is not already specified
const writeToCondarc = inputs.condarcFile === undefined
Expand Down

0 comments on commit 4b9113a

Please sign in to comment.