ci: use a python venv for py-trees #18
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
name: Jazzy CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: rostooling/setup-ros-docker:ubuntu-noble-ros-jazzy-ros-base-latest | |
steps: | |
- name: Setup ROS2 | |
uses: ros-tooling/[email protected] | |
with: | |
use-ros2-testing: true | |
required-ros-distributions: jazzy | |
- name: Checkout Repository with submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python environment | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
pip install --upgrade pip | |
- name: Install py-trees dependency | |
run: | | |
source venv/bin/activate | |
pip install py-trees | |
- name: Build ROS 2 package | |
uses: ros-tooling/[email protected] | |
with: | |
package-name: > | |
tello_suite | |
tello_driver | |
tello_msgs | |
tello_bringup | |
tello_bt | |
tello_control_station | |
hand_gestures | |
plugin_server_base | |
target-ros2-distro: jazzy | |