Skip to content

Commit

Permalink
Try path instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Sep 2, 2023
1 parent bad1a56 commit 2a3f5df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ jobs:
choco install --verbose make
# Add bundled conda to PATH
# echo "${CONDA}\Scripts" >> $GITHUB_PATH
# Add micromamba to PATH
echo "C:\Users\runneradmin\micromamba-bin\" >> $GITHUB_PATH
# Set executable paths
echo "CONDA_EXECUTABLE=$MAMBA_EXE" >> "$GITHUB_ENV"
echo "CONDA_SHELL_HOOK=$MAMBA_EXE shell hook --shell bash" >> "$GITHUB_ENV"
echo "CONDA_EXECUTABLE=micromamba" >> "$GITHUB_ENV"
echo "CONDA_SHELL_HOOK=micromamba shell hook --shell bash" >> "$GITHUB_ENV"
echo "BASH_EXECUTABLE=$(which bash)" >> "$GITHUB_ENV"
- name: Install dependencies
Expand Down
6 changes: 6 additions & 0 deletions tests/conda_harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ then
sudo chown -R $USER /usr/local/miniconda
fi

echo "Creating environment..."
make create_environment CONDA_EXECUTABLE=$CONDA_EXECUTABLE

echo "Activating environment..."
$CONDA_EXECUTABLE activate $PROJECT_NAME

echo "Installing requirements..."
make requirements CONDA_EXECUTABLE=$CONDA_EXECUTABLE

echo "Running tests..."
run_tests $PROJECT_NAME

0 comments on commit 2a3f5df

Please sign in to comment.