-
Notifications
You must be signed in to change notification settings - Fork 12
66 lines (55 loc) · 1.93 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
name: test nodl
on:
pull_request:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build-docker:
runs-on: ubuntu-latest
container:
image: osrf/ros2:nightly
steps:
- name: prep
run: |
apt-get -qq update
apt-get -qq upgrade -y
apt-get -qq install -y curl libasio-dev libtinyxml2-dev
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/5c45b95018788deff62202aaa831ad4c20ebe2c6/index.yaml
colcon mixin update default
mkdir -p src
- name: Checkout
uses: actions/checkout@v2
with:
path: src/
- run: cp src/codecov.yml .
- name: Rosdep
run: |
. /opt/ros/$ROS_DISTRO/setup.sh
DEBIAN_FRONTEND=noninteractive rosdep update && rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
- name: Build
run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon build --event-handlers console_cohesion+ --mixin coverage-pytest --packages-select nodl_python ros2nodl --merge-install
- name: Run Tests
id: action_ros_ci_step
run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon test --merge-install --mixin coverage-pytest --packages-select nodl_python ros2nodl --return-code-on-test-failure --event-handlers console_cohesion+
- uses: codecov/codecov-action@v1
with:
file: build/nodl_python/coverage.xml
fail_ci_if_error: true
flags: unittests,nodl_python
name: codecov-nodl_python
- uses: codecov/codecov-action@v1
with:
file: build/ros2nodl/coverage.xml
fail_ci_if_error: true
flags: unittests,ros2nodl
name: codecov-ros2nodl
- name: Upload Logs
uses: actions/upload-artifact@v1
with:
name: colcon-logs-linux
path: log/
if: always()