Skip to content

Commit

Permalink
debugging win
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Feb 24, 2021
1 parent 07a0e63 commit 488a221
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
micromamba --help
if: runner.os != 'Windows'

- name: test environment name in powershell
- name: debug environment name in powershell
shell: powershell
run: |
python -c "import os; env = os.environ['CONDA_PREFIX'].split('/')[-1]; assert env == 'myenv'"
python -c "import os; env = os.environ['CONDA_PREFIX']; print(env)"
if: runner.os == 'Windows'

- name: debug environment name in bash
shell: bash -l {0}
- name: test environment name in powershell
shell: powershell
run: |
python -c "import os; env = os.environ['CONDA_PREFIX']; print(env)"
if: runner.os != 'Windows'
python -c "import os; env = os.environ['CONDA_PREFIX'].split('\')[-1]; assert env == 'myenv'"
if: runner.os == 'Windows'

- name: test environment name in bash
shell: bash -l {0}
Expand Down

0 comments on commit 488a221

Please sign in to comment.