Ansible upgrades #3
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
container: | |
image: umrover1/ros:latest | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: "true" | |
# This makes sure that $GITHUB_WORKSPACE is the catkin workspace path | |
path: "src/mrover" | |
- name: Ensure Python Requirements | |
run: . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && pip install -e "$GITHUB_WORKSPACE/src/mrover[dev]" | |
- name: Style Check | |
run: . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && cd $GITHUB_WORKSPACE/src/mrover/ && ./style.sh | |
- name: Ensure ROS APT Requirements | |
if: github.event.pull_request.draft == false | |
run: runuser -u mrover -- rosdep update && rosdep install --from-paths "$GITHUB_WORKSPACE/src" --ignore-src -r -y --rosdistro noetic | |
- name: Copy Catkin Profiles | |
if: github.event.pull_request.draft == false | |
run: rsync -r $GITHUB_WORKSPACE/src/mrover/ansible/roles/build/files/profiles $GITHUB_WORKSPACE/.catkin_tools | |
- name: Initialize | |
if: github.event.pull_request.draft == false | |
run: . /opt/ros/noetic/setup.sh && catkin init && catkin profile set ci | |
- name: Build | |
if: github.event.pull_request.draft == false | |
run: . /opt/ros/noetic/setup.sh && . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && catkin build | |
- name: Test | |
if: github.event.pull_request.draft == false | |
run: . /opt/ros/noetic/setup.sh && . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && . $GITHUB_WORKSPACE/devel/setup.sh && catkin test -j1 |