Skip to content

Commit

Permalink
Add workflow for Lie group tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
luisenp committed Nov 6, 2024
1 parent f1c1e55 commit 3716989
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ run_lie_group_tests: &run_lie_group_tests
- run:
name: Running Lie Groups tests
working_directory: ~/project
command: |
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"
command: |
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"
run_other_unit_tests: &run_other_unit_tests
- run:
Expand Down Expand Up @@ -470,9 +470,6 @@ workflows:
- py38_optimizer_tests
- py39_optimizer_tests
- py310_optimizer_tests
- py38_lie_tests
- py39_lie_tests
- py310_lie_tests
- py38_other_unit_tests
- py39_other_unit_tests
- py310_other_unit_tests
54 changes: 54 additions & 0 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: pytests
on:
pull_request:
branches:
- main

jobs:
test_lie_groups:
runs-on: ubuntu-latest
strategy:
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"

0 comments on commit 3716989

Please sign in to comment.