Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #112 #113

Merged
merged 30 commits into from
Jan 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP
  • Loading branch information
jonashaag committed Jan 13, 2023
commit bf6d085cdad5f81b9eba7865d584415baf1c273c
10 changes: 9 additions & 1 deletion .github/workflows/test_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ jobs:
environment-file: [false, environment.yml]
condarc-file: ["", ".github/workflows/resources/condarc1"]
channels: ["", "conda-forge,blah"]
E R C
0 0 1 x blah
0 1 0 x pytorch
1 0 0 x defaults
exclude:
- environment-file: false
condarc-file: ""
Expand All @@ -126,8 +130,12 @@ jobs:
- name: check channels are correct
run: |
set -x
ERC="$([[ '${{ matrix.environment-file }}' = false ]] && echo 0 || echo 1)"
ERC="${ERC}$([ -z '${{ matrix.condarc-file }}' ]] && echo 0 || echo 1)"
ERC="${ERC}$([ -z '${{ matrix.channels }}' ]] && echo 0 || echo 1)"
echo $ERC
exit 0
CHANNEL_OPT=$(micromamba config get channels)
echo "$CHANNEL_OPT"
[[ "$CHANNEL_OPT" =~ conda-forge ]]
if [[ "${{ matrix.channels }}" =~ blah ]]; then
[[ "$CHANNEL_OPT" =~ blah ]]
Expand Down