-
Notifications
You must be signed in to change notification settings - Fork 57
59 lines (57 loc) · 1.56 KB
/
build-ros2.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
name: build
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
build-ros2:
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [
"ubuntu-py39",
"ubuntu-py310",
"ubuntu-py311",
]
include:
- name: "ubuntu-py39"
os: ubuntu-latest
python-version: "3.9"
- name: "ubuntu-py310"
os: ubuntu-latest
python-version: "3.10"
- name: "ubuntu-py311"
os: ubuntu-latest
python-version: "3.11"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
- name: Install
run: |
python -m pip install --no-cache-dir -r requirements-dev.txt
- name: Set up docker containers
run: |
docker build -t gramaziokohler/rosbridge:integration_tests_ros2 ./docker/ros2
docker run -d -p 9090:9090 --name rosbridge gramaziokohler/rosbridge:integration_tests_ros2 /bin/bash -c "ros2 launch /integration-tests.launch"
docker ps -a
- name: Run linter
run: |
invoke check
- name: Run tests
run: |
pytest tests/ros2
- name: Tear down docker containers
run: |
docker rm -f rosbridge