Skip to content

Commit

Permalink
Action with ENV issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotochleb committed Jul 19, 2024
1 parent 6fc5064 commit 37c3df8
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/ros_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Checks installation and tests happypose_ros package

on: [ push, pull_request ]

jobs:
test:
runs-on: ubuntu-22.04

env:
HAPPYPOSE_DATA_DIR: local_data

steps:
- name: Install EGL mesa - required for Panda3D renderer
run: |
sudo apt-get update
sudo apt-get install -qqy libegl1-mesa libegl1-mesa-dev
- name: Install Python C headers and remove Blinker version conflicting with HappyPose
run: |
sudo apt-get update
sudo apt-get install -qqy python3-dev
sudo apt purge -qqy python3-blinker
- name: Caching of the HappyPose installation and data
uses: actions/cache@v4
with:
path: local_data
key: data

- name: Update pip
run: pip install -U pip

- name: Download HappyPose source
working-directory: /tmp
run: |
git clone --branch dev --recurse-submodules https://github.com/agimus-project/happypose.git
- name: Build and install HappyPose
working-directory: /tmp/happypoes
run: pip install ".[cpu,pypi,evaluation,multiview]" --extra-index-url https://download.pytorch.org/whl/cpu

- name: Download pre-trained models required for tests
run: |
mkdir -p happypose_data_dir
python -m happypose.toolbox.utils.download \
--bop_dataset ycbv \
--cosypose_models \
detector-bop-ycbv-pbr--970850 \
coarse-bop-ycbv-pbr--724183 \
refiner-bop-ycbv-pbr--604090
- name: Unzip HappyPose YCBV models
working-directory: happypose_data_dir/bop_datasets/ycbv
run: |
unzip ycbv_base.zip
unzip ycbv_models.zip
- name: Remove incompatible PyTest version
run: pip uninstall -y pytest

- name: Install ROS 2 Humble
uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble

- name: Build and test happypose_ros
uses: ros-tooling/[email protected]
with:
package-name: happypose_ros
target-ros2-distro: humble

- name: Build happypose_examples
uses: ros-tooling/[email protected]
with:
package-name: happypose_examples
target-ros2-distro: humble
skip-tests: true

0 comments on commit 37c3df8

Please sign in to comment.