Skip to content

Commit

Permalink
BUG: keep track of conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpa committed Mar 13, 2024
1 parent 7668d4c commit 1b1992a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: ${{ env.python_version }}
activate-environment: antspy-env

- name: Cache Conda environment
- name: Load conda environment from cache if available
id: cache-env
uses: actions/cache@v4
with:
Expand All @@ -46,11 +46,13 @@ jobs:
- name: Install dependencies and ANTsPy from commit
if: steps.cache-env.outputs.cache-hit != 'true'
run: |
conda install -c conda-forge conda-pack
source $CONDA/etc/profile.d/conda.sh
conda install -c conda-forge conda-pack
conda create -n antspy-env python=${{ env.python_version }} -y
conda activate antspy-env
pip install ./antspy-temp
# Pack the environment
conda deactivate
conda-pack -n antspy-env -o ~/conda-env.tar.gz
- name: Cache Conda environment
Expand Down

0 comments on commit 1b1992a

Please sign in to comment.