Skip to content

Commit

Permalink
Move installation steps to separate yaml files.
Browse files Browse the repository at this point in the history
  • Loading branch information
luisenp committed Nov 6, 2024
1 parent 3716989 commit 1fb781b
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 41 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/install-theseus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Setup Theseus

runs:
using: composite
install-theseus:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install theseus without Baspacho
run: |
export PATH=~/conda/bin:$PATH
source activate theseus
pip install -e ".[dev]"
1 change: 1 addition & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main

jobs:
precommit:
runs-on: ubuntu-latest
Expand Down
58 changes: 17 additions & 41 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,20 @@ jobs:
matrix:
python-version: [3.8, 3.9, 3.10.15]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
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 .
- name: Install theseus without Baspacho
run: |
export PATH=~/conda/bin:$PATH
source activate theseus
pip install -e ".[dev]"
- name: Run Lie groups tests
run: |
export PATH=~/conda/bin:$PATH
source activate theseus
python -m pytest tests/theseus_tests/geometry -m "not cudaext"
python -m pytest tests/torchlie_tests -m "not cudaext"
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- uses: setup-deps.yml
with:
python-version: ${{ matrix.python-version }}
- uses: install-theseus.yml
with:
python-version: ${{ matrix.python-version }}
- name: Run Lie groups tests
run: |
export PATH=~/conda/bin:$PATH
source activate theseus
python -m pytest tests/theseus_tests/geometry -m "not cudaext"
python -m pytest tests/torchlie_tests -m "not cudaext"
36 changes: 36 additions & 0 deletions .github/workflows/setup-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Setup dependencies

runs:
using: composite
setup-deps:
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
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 .

0 comments on commit 1fb781b

Please sign in to comment.