-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (55 loc) · 1.57 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Tests
on:
push:
jobs:
Unit-Tests:
name: Unit Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/agri-gaia/seerep_base:latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
path: src
- name: Build Packages
run: |
source /opt/ros/noetic/setup.bash
catkin build seerep_hdf5_fb seerep_hdf5_pb seerep_ros_conversions_fb --workspace $GITHUB_WORKSPACE/
source $GITHUB_WORKSPACE/devel/setup.bash
shell: bash
- name: HDF5 Flatbuffer Unit Tests
run: catkin test seerep_hdf5_fb
shell: bash
- name: HDF5 Protobuf Unit Tests
run: catkin test seerep_hdf5_pb
shell: bash
- name: ROS Conversions Unit Tests
run: catkin test seerep_ros_conversions_fb
shell: bash
Integration-Tests:
name: Integration Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/agri-gaia/seerep_base:latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
path: src
- name: Set up Python 3.8
run: |
apt update
apt install -y python3.8
ln -s `which python3.8` /usr/local/bin/python
shell: bash
- name: Build SEEREP
run: |
source /opt/ros/noetic/setup.bash
catkin build --workspace $GITHUB_WORKSPACE
shell: bash
- name: Execute Pytest
run: |
source $GITHUB_WORKSPACE/devel/setup.bash
PYTHONPATH=$GITHUB_WORKSPACE/devel/include/seerep_com/fbs:$PYTHONPATH pytest --force-sugar $GITHUB_WORKSPACE/src
shell: bash