Skip to content

Commit

Permalink
Applying test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Feb 24, 2021
1 parent 066026d commit 1a59833
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
run: |
python -VV
python -c "import numpy"
micromamba info
if: runner.os == 'Windows'

- name: run python in bash
Expand All @@ -36,17 +35,16 @@ jobs:
python -VV
python -c "import numpy"
micromamba --help
micromamba info
if: runner.os != 'Windows'

- name: test environment name in powershell
shell: powershell
run: |
python -c "import subprocess; ret = subprocess.check_output(['micromamba', 'info']).decode('utf-8'); assert ret.split('active environment : ')[1].split('/')[-1].split('\n')[0] == 'myenv'"
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}
run: |
python -c "import subprocess; ret = subprocess.check_output(['micromamba', 'info']).decode('utf-8'); assert ret.split('active environment : ')[1].split('/')[-1].split('\n')[0] == 'myenv'"
python -c "import os; env = os.environ['CONDA_PREFIX'].split('/')[-1]; assert env == 'myenv'
if: runner.os != 'Windows'

0 comments on commit 1a59833

Please sign in to comment.