Skip to content

Commit

Permalink
activate
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg1969 committed Nov 4, 2024
1 parent 04c5fc6 commit ed2252b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
name: Set CONDA_ROOT
run: |
CONDA_ROOT=$(dirname $GITHUB_WORKSPACE)/conda
echo "::set-output name=value::$CONDA_ROOT"
echo "value=$CONDA_ROOT" >> $GITHUB_OUTPUT
echo "CONDA_ROOT=$CONDA_ROOT" >> $GITHUB_ENV
echo "CONDA_ROOT: $CONDA_ROOT"
# Use a smaller cache entry to enable a quicker exit if we
# have already built the testbed. Any small file will do
- id: cache-key
Expand All @@ -42,6 +41,12 @@ jobs:
with:
path: ${{ steps.conda-root.outputs.value }}
key: testbed-${{ matrix.os }}-${{ hashFiles('testbed') }}
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
if: steps.cache-key.outputs.cache-hit != 'true'
with:
auto-activate-base: true
activate-environment: ""
- name: Verify or build the testbed
if: steps.cache-key.outputs.cache-hit != 'true'
# The argument tells the script we are in caching mode
Expand Down
1 change: 1 addition & 0 deletions testbed/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ source $CONDA_ROOT/etc/profile.d/conda.sh
conda activate base

if [ ! -f $CONDA_ROOT/.created ]; then
conda config --prepend channels conda-forge --system
pip install -e .
python -m nb_conda_kernels.install --enable

Expand Down

0 comments on commit ed2252b

Please sign in to comment.