diff --git a/.github/workflows/options.yml b/.github/workflows/options.yml index 84ed688a..e04ca691 100644 --- a/.github/workflows/options.yml +++ b/.github/workflows/options.yml @@ -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}