Skip to content

Commit

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

- name: run python in bash
Expand All @@ -35,16 +36,17 @@ 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(['mamba', 'info']).decode('utf-8'); assert ret.split('active environment : ')[1].split('/')[-1].split('\n')[0] == 'myenv'"
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'"
if: runner.os == 'Windows'

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

0 comments on commit 066026d

Please sign in to comment.