Skip to content

Commit

Permalink
update CI with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
OAHC2022 committed Jul 14, 2023
1 parent d4acbab commit 91104c5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/buildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
name: Build test
# Set the type of machine to run on
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
container: ros:noetic
# Only run when merging to main.
if: github.ref == 'refs/heads/main'
Expand All @@ -30,11 +33,21 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
channels: bioconda, conda-forge, defaults
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
auto-update-conda: true
auto-activate-base: true

- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
$CONDA/bin/conda env create -f environment.yml
$CONDA/bin/conda activate codebotler
echo "begin: PATH=$PATH;"
conda env create -f environment.yml
conda activate codebotler || true
echo "after conda activate codebotler: PATH=$PATH;"
pip3 install torch torchvision torchaudio
- name: Catkin make
Expand Down

0 comments on commit 91104c5

Please sign in to comment.