-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move installation steps to separate yaml files.
- Loading branch information
Showing
3 changed files
with
78 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Setup Theseus | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
with-baspacho: | ||
description: Install Theseus with Baspacho | ||
default: false | ||
required: true | ||
|
||
jobs: | ||
setup-theseus: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install theseus without Baspacho | ||
if: inputs.with-baspacho == 'false' | ||
run: | | ||
export PATH=~/conda/bin:$PATH | ||
source activate theseus | ||
pip install -e ".[dev]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Setup dependencies | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
setup-deps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install suitesparse | ||
run: | | ||
sudo apt-get update && sudo apt-get install -y libsuitesparse-dev | ||
- name: Create Conda env | ||
run: | | ||
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh | ||
/bin/bash ~/miniconda.sh -b -p ~/conda | ||
export PATH=~/conda/bin:$PATH | ||
conda create --name theseus python=${{ matrix.python-version }} | ||
source activate theseus | ||
pip install --progress-bar off --upgrade pip | ||
pip install --progress-bar off --upgrade setuptools | ||
- name: Install Torch | ||
run: | | ||
export PATH=~/conda/bin:$PATH | ||
source activate theseus | ||
pip install torch | ||
- name: Install torchlie and torchkin | ||
run: | | ||
export PATH=~/conda/bin:$PATH | ||
source activate theseus | ||
cd torchlie | ||
pip install -e . | ||
cd ../torchkin | ||
pip install -e . |