-
Notifications
You must be signed in to change notification settings - Fork 2
98 lines (85 loc) · 3.09 KB
/
test.yaml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: test
on: # NOLINT
pull_request:
push:
schedule:
- cron: '0 10 * * MON'
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
ros_distribution:
- humble
- rolling
include:
# Humble Hawksbill (May 2022 - May 2027)
- docker_image: osrf/ros:humble-desktop-full
ros_distribution: humble
ros_version: 2
# Rolling Ridley (No End-Of-Life)
- docker_image: osrf/ros:rolling-desktop-full
ros_distribution: rolling
ros_version: 2
container:
image: ${{ matrix.docker_image }}
steps:
- name: Setup ROS 2
uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distribution }}
- name: Build and test
if: ${{ matrix.ros_version == 2 }}
id: built-and-test
uses: ros-tooling/[email protected]
with:
package-name: rqt_dotgraph
target-ros2-distro: ${{ matrix.ros_distribution }}
vcs-repo-file-url: ""
colcon-defaults: |
{
"build": {
"mixin": ["coverage-pytest"]
},
"test": {
"mixin": ["coverage-pytest"]
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/1ddb69bedfd1f04c2f000e95452f7c24a4d6176b/index.yaml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
- name: Setup copy of repo
uses: actions/checkout@v4
- name: Install Python dependencies
run: |
# This is not the preferred way to install Python tools but seems to be required here.
# "python3 -m pip install" would be preferred.
sudo pip3 install --upgrade pip
sudo pip3 install --upgrade setuptools
sudo pip3 install --upgrade wheel
sudo pip3 install --upgrade coverage
sudo pip3 install --upgrade statick
sudo pip3 install --upgrade statick-md
sudo pip3 install --upgrade pycodestyle
sudo pip3 install --upgrade pyflakes
- name: Install Apt dependencies (Linux)
run: |
sudo apt install cccc
sudo apt install libxml2
sudo apt install libxml2-utils
sudo apt install curl
# Have to install newer version of node from non-apt source due to SSL library compatibility issues.
curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
sudo npm install -g n
sudo n stable
sudo npm install -g markdownlint-cli
rm nodesource_setup.sh
- name: Statick
run: |
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
statick . --check --output-directory statick-output --user-paths ./statick_config --profile rqt_dotgraph_profile.yaml --config rqt_dotgraph_config.yaml --log info --timings