-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2625dab
commit f64b4da
Showing
2 changed files
with
48 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Ouroboros-ROS-CI | ||
run-name: Ouroboros-ROS-CI | ||
on: | ||
push: | ||
branches: main | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
jobs: | ||
Ouroboros-ROS-CI: | ||
runs-on: ubuntu-latest | ||
container: ros:noetic-ros-base-focal | ||
steps: | ||
- name: Update git | ||
run: sudo apt update && sudo apt install -y git | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
path: src/ouroboros_repo | ||
submodules: recursive | ||
- name: Dependencies | ||
run: | | ||
sudo apt install -y libeigen3-dev pkg-config ros-noetic-cv-bridge python3-pip | ||
sudo pip install --upgrade pip | ||
sudo python3 -m pip install catkin_tools empy catkin_pkg | ||
- name: Install Ouroboros | ||
run: pwd && ls && cd src/ouroboros_repo && pwd && pip install . | ||
|
||
- name: Install ROS packages with rosdep | ||
shell: bash | ||
run: | | ||
source /opt/ros/noetic/setup.bash | ||
rosdep update | ||
rosdep install --from-paths src --ignore-src -r -s # do a dry-run first | ||
rosdep install --from-paths src --ignore-src -r -y | ||
- name: catkin build | ||
shell: bash | ||
run: | | ||
source /opt/ros/noetic/setup.bash | ||
catkin build -s | ||
- name: Run test script | ||
shell: bash | ||
run: | | ||
source devel/setup.bash | ||
cd src/ouroboros_repo | ||
pytest extra/ouroboros_ros/tests | ||
- run: echo "🍏 This job's status is ${{ job.status }}." |
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