-
Notifications
You must be signed in to change notification settings - Fork 150
121 lines (116 loc) · 3.55 KB
/
Copy pathworkflow.yml
File metadata and controls
121 lines (116 loc) · 3.55 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: build
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: flake8 lint
uses: py-actions/flake8@v2
with:
max-line-length: "120"
path: "catkin_tools"
- name: isort
uses: isort/isort-action@v1
with:
requirements-files: "requirements.txt"
sort-paths: "catkin_tools tests"
configuration: "--check-only --diff --force-single-line-imports --line-length 120"
build_and_test:
strategy:
fail-fast: false
matrix:
versions:
- dist: ubuntu-20.04
python: "3.9"
catkin: noetic-devel
- dist: ubuntu-20.04
python: "3.10"
catkin: noetic-devel
- dist: ubuntu-20.04
python: "3.11"
catkin: noetic-devel
- dist: ubuntu-20.04
python: "3.12"
catkin: noetic-devel
- dist: ubuntu-20.04
python: "3.13"
catkin: noetic-devel
- dist: ubuntu-22.04
python: "3.9"
catkin: noetic-devel
- dist: ubuntu-22.04
python: "3.10"
catkin: noetic-devel
- dist: ubuntu-22.04
python: "3.11"
catkin: noetic-devel
- dist: ubuntu-22.04
python: "3.12"
catkin: noetic-devel
- dist: ubuntu-22.04
python: "3.13"
catkin: noetic-devel
- dist: ubuntu-24.04
python: "3.9"
catkin: noetic-devel
- dist: ubuntu-24.04
python: "3.10"
catkin: noetic-devel
- dist: ubuntu-24.04
python: "3.11"
catkin: noetic-devel
- dist: ubuntu-24.04
python: "3.12"
catkin: noetic-devel
- dist: ubuntu-24.04
python: "3.13"
catkin: noetic-devel
runs-on: ${{ matrix.versions.dist }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.versions.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.versions.python }}
- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install --upgrade empy pytest pynose coverage
- name: Set up catkin
run: |
git clone https://github.com/ros/catkin.git -b ${{ matrix.versions.catkin }} /tmp/catkin_source
mkdir /tmp/catkin_source/build
pushd /tmp/catkin_source/build
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .. && make
popd
- name: Test catkin_tools
run: |
source /tmp/catkin_source/build/devel/setup.bash
pytest tests --ignore=tests/system/resources
docs:
runs-on: ubuntu-latest
name: Documentation
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install documentation dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install --upgrade -r docs/requirements.txt
- name: Build documentation
working-directory: docs
run: |
make html
sphinx-build -b spelling . build -t use_spelling