Skip to content

Commit

Permalink
persistent bash env in conda github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
missing-user authored Nov 17, 2024
1 parent 70c5c13 commit 54e74af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python_wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,21 @@ jobs:
python_wrapper-conda-build:
runs-on: ubuntu-latest
name: python_wrapper conda build

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
# Or using the command conda env create --file environment.yml
with:
auto-update-conda: false
auto-activate-base: false
activate-environment: spec_wrapper
environment-file: environment.yml

- name: Echo conda environment
run: conda env export
- name: Test if installation is ok
run: |
conda activate spec_wrapper
python -c "import spec; print('success')"

0 comments on commit 54e74af

Please sign in to comment.