Skip to content

Commit 703d48d

Browse files
committed
test alternate ros ci implementation
1 parent 2625dab commit 703d48d

File tree

2 files changed

+150
-48
lines changed

2 files changed

+150
-48
lines changed

.github/workflows/ci-action-ros.yaml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: Ouroboros-ROS-CI
2+
run-name: Ouroboros-ROS-CI
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
7+
branches:
8+
- main
9+
- develop
10+
jobs:
11+
Ouroboros-ROS-CI:
12+
runs-on: ubuntu-latest
13+
container: ros:noetic-ros-base-focal
14+
steps:
15+
- name: Check out repository code
16+
uses: actions/checkout@v4
17+
with:
18+
path: catkin_ws/src/ouroboros_repo
19+
submodules: recursive
20+
- name: Set up Python 3.8
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: 3.8
24+
25+
- name: Dependencies
26+
run: sudo apt install libeigen3-dev pkg-config
27+
- name: Install Ouroboros
28+
run: cd ${{ github.workspace }}/catkin_ws/src/ouroboros_repo && pwd && pip install .
29+
30+
- name: Install ROS packages with rosdep
31+
run: |
32+
source /opt/ros/noetic/setup.bash
33+
sudo rosdep init
34+
rosdep update
35+
#mkdir -p ~/catkin_ws/src
36+
#mv ${{ github.workspace }}/ouroboros_repo ~/catkin_ws/src/
37+
cd ~/catkin_ws
38+
rosdep install --from-paths src --ignore-src -r -s # do a dry-run first
39+
rosdep install --from-paths src --ignore-src -r -y
40+
- name: catkin build
41+
run: |
42+
source /opt/ros/noetic/setup.bash
43+
cd ~/catkin_ws
44+
catkin build -s
45+
#source devel/setup.bash
46+
47+
48+
- name: Run test script
49+
run: |
50+
source ${{ github.workspace }}/catkin_ws/devel/setup.bash
51+
cd ${{ github.workspace }}/catkin_ws/src/ouroboros_repo
52+
pytest extra/ouroboros_ros/tests
53+
- run: echo "🍏 This job's status is ${{ job.status }}."
54+
55+
# Ouroboros-ROS-CI:
56+
# runs-on: ubuntu-20.04
57+
# steps:
58+
# - name: Check out repository code
59+
# uses: actions/checkout@v4
60+
# with:
61+
# path: ouroboros_repo
62+
# submodules: recursive
63+
# - name: Install ROS
64+
# run: |
65+
# sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
66+
# sudo apt install curl -y
67+
# curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
68+
# sudo apt-get update -qq
69+
# sudo apt-get install -y ros-noetic-desktop-full
70+
# sudo apt-get install dpkg
71+
# sudo apt-get install -y python3-rosinstall python3-rosinstall-generator build-essential
72+
# sudo apt-get install -y python3-catkin-tools
73+
# sudo apt-get install -y python3-rosdep
74+
# sudo apt-get install -y python3-wstool
75+
# - name: Check if ROS installed
76+
# run: |
77+
# if [ -d "/opt/ros/noetic" ]; then
78+
# echo "ROS Noetic is installed!"
79+
# else
80+
# echo "ROS Noetic is NOT installed!"
81+
# fi
82+
# - name: Install ROS packages with rosdep
83+
# run: |
84+
# source /opt/ros/noetic/setup.bash
85+
# sudo rosdep init
86+
# rosdep update
87+
# mkdir -p ~/catkin_ws/src
88+
# mv ${{ github.workspace }}/ouroboros_repo ~/catkin_ws/src/
89+
# cd ~/catkin_ws
90+
# rosdep install --from-paths src --ignore-src -r -s # do a dry-run first
91+
# rosdep install --from-paths src --ignore-src -r -y
92+
# - name: catkin build
93+
# run: |
94+
# source /opt/ros/noetic/setup.bash
95+
# cd ~/catkin_ws
96+
# catkin build -s
97+
# source devel/setup.bash
98+
# - name: Install Ouroboros
99+
# run: cd ~/catkin_ws/src/ouroboros_repo && python -m pip install --upgrade pip && pip install .
100+
# - name: Run test script
101+
# run: cd ~/catkin_ws/src/ouroboros_repo && source ~/catkin_ws/devel/setup.bash && pytest --ignore=third_party
102+
# - run: echo "🍏 This job's status is ${{ job.status }}."

.github/workflows/ci-action.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -34,51 +34,51 @@ jobs:
3434
run: cd ${{ github.workspace }}/ouroboros_repo && pytest --ignore=third_party --ignore=extra/ouroboros_ros
3535
- run: echo "🍏 This job's status is ${{ job.status }}."
3636

37-
Ouroboros-ROS-CI:
38-
runs-on: ubuntu-20.04
39-
steps:
40-
- name: Check out repository code
41-
uses: actions/checkout@v4
42-
with:
43-
path: ouroboros_repo
44-
submodules: recursive
45-
- name: Install ROS
46-
run: |
47-
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
48-
sudo apt install curl -y
49-
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
50-
sudo apt-get update -qq
51-
sudo apt-get install -y ros-noetic-desktop-full
52-
sudo apt-get install dpkg
53-
sudo apt-get install -y python3-rosinstall python3-rosinstall-generator build-essential
54-
sudo apt-get install -y python3-catkin-tools
55-
sudo apt-get install -y python3-rosdep
56-
sudo apt-get install -y python3-wstool
57-
- name: Check if ROS installed
58-
run: |
59-
if [ -d "/opt/ros/noetic" ]; then
60-
echo "ROS Noetic is installed!"
61-
else
62-
echo "ROS Noetic is NOT installed!"
63-
fi
64-
- name: Install ROS packages with rosdep
65-
run: |
66-
source /opt/ros/noetic/setup.bash
67-
sudo rosdep init
68-
rosdep update
69-
mkdir -p ~/catkin_ws/src
70-
mv ${{ github.workspace }}/ouroboros_repo ~/catkin_ws/src/
71-
cd ~/catkin_ws
72-
rosdep install --from-paths src --ignore-src -r -s # do a dry-run first
73-
rosdep install --from-paths src --ignore-src -r -y
74-
- name: catkin build
75-
run: |
76-
source /opt/ros/noetic/setup.bash
77-
cd ~/catkin_ws
78-
catkin build -s
79-
source devel/setup.bash
80-
- name: Install Ouroboros
81-
run: cd ~/catkin_ws/src/ouroboros_repo && python -m pip install --upgrade pip && pip install .
82-
- name: Run test script
83-
run: cd ~/catkin_ws/src/ouroboros_repo && source ~/catkin_ws/devel/setup.bash && pytest --ignore=third_party
84-
- run: echo "🍏 This job's status is ${{ job.status }}."
37+
# Ouroboros-ROS-CI:
38+
# runs-on: ubuntu-20.04
39+
# steps:
40+
# - name: Check out repository code
41+
# uses: actions/checkout@v4
42+
# with:
43+
# path: ouroboros_repo
44+
# submodules: recursive
45+
# - name: Install ROS
46+
# run: |
47+
# sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
48+
# sudo apt install curl -y
49+
# curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
50+
# sudo apt-get update -qq
51+
# sudo apt-get install -y ros-noetic-desktop-full
52+
# sudo apt-get install dpkg
53+
# sudo apt-get install -y python3-rosinstall python3-rosinstall-generator build-essential
54+
# sudo apt-get install -y python3-catkin-tools
55+
# sudo apt-get install -y python3-rosdep
56+
# sudo apt-get install -y python3-wstool
57+
# - name: Check if ROS installed
58+
# run: |
59+
# if [ -d "/opt/ros/noetic" ]; then
60+
# echo "ROS Noetic is installed!"
61+
# else
62+
# echo "ROS Noetic is NOT installed!"
63+
# fi
64+
# - name: Install ROS packages with rosdep
65+
# run: |
66+
# source /opt/ros/noetic/setup.bash
67+
# sudo rosdep init
68+
# rosdep update
69+
# mkdir -p ~/catkin_ws/src
70+
# mv ${{ github.workspace }}/ouroboros_repo ~/catkin_ws/src/
71+
# cd ~/catkin_ws
72+
# rosdep install --from-paths src --ignore-src -r -s # do a dry-run first
73+
# rosdep install --from-paths src --ignore-src -r -y
74+
# - name: catkin build
75+
# run: |
76+
# source /opt/ros/noetic/setup.bash
77+
# cd ~/catkin_ws
78+
# catkin build -s
79+
# source devel/setup.bash
80+
# - name: Install Ouroboros
81+
# run: cd ~/catkin_ws/src/ouroboros_repo && python -m pip install --upgrade pip && pip install .
82+
# - name: Run test script
83+
# run: cd ~/catkin_ws/src/ouroboros_repo && source ~/catkin_ws/devel/setup.bash && pytest --ignore=third_party
84+
# - run: echo "🍏 This job's status is ${{ job.status }}."

0 commit comments

Comments
 (0)