Skip to content

Commit 6bb8024

Browse files
sim workflow
1 parent bb92b9b commit 6bb8024

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/systemtests_sim.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: System Tests Simulation
2+
3+
#run the simulation tests for every push to main
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
# manual trigger
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: self-hosted
13+
steps:
14+
- name: Create workspace
15+
id: step1
16+
run: |
17+
cd ros2_ws/src || mkdir -p ros2_ws/src
18+
- name: Checkout motion capture package
19+
id: step2
20+
run: |
21+
cd ros2_ws/src
22+
ls motion_capture_tracking || git clone --branch ros2 --recursive https://github.com/IMRCLab/motion_capture_tracking.git
23+
- name: Checkout Crazyswarm2
24+
id: step3
25+
uses: actions/checkout@v4
26+
with:
27+
path: ros2_ws/src/crazyswarm2
28+
submodules: 'recursive'
29+
- name: Build workspace
30+
id: step4
31+
run: |
32+
source /opt/ros/humble/setup.bash
33+
cd ros2_ws
34+
colcon build --symlink-install
35+
36+
- name: Flight test
37+
id: step5
38+
run: |
39+
cd ros2_ws
40+
source /opt/ros/humble/setup.bash
41+
. install/local_setup.bash
42+
export ROS_LOCALHOST_ONLY=1
43+
python3 src/crazyswarm2/systemtests/test_flights_sim.py --sim
44+
45+
- name: Upload files
46+
id: step6
47+
if: '!cancelled()'
48+
uses: actions/upload-artifact@v3
49+
with:
50+
name: pdf_rosbags_and_logs
51+
path: |
52+
ros2_ws/results

0 commit comments

Comments
 (0)