-
Notifications
You must be signed in to change notification settings - Fork 147
57 lines (54 loc) · 1.76 KB
/
workflow.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
name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
versions:
- dist: ubuntu-20.04
python: "3.8"
catkin: noetic-devel
- dist: ubuntu-20.04
python: "3.9"
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
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 .
# Fix some sphinx versions until python 3.7 support is dropped
pip install --upgrade empy sphinx_rtd_theme sphinxcontrib-spelling pytest nose coverage flake8 mock isort
- 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 .. && make
popd
- name: Test catkin_tools
run: |
source /tmp/catkin_source/build/devel/setup.bash
pytest tests --ignore=tests/system/resources
isort -c --df --sl -l 120 catkin_tools tests
- name: Build documentation
run: |
pushd docs
make html
sphinx-build -b spelling . build -t use_spelling
popd