-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.13 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
# Cancel previously running PR jobs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
lint:
name: Lint sources
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
cache: pip
- name: Install python packages
run: pip install pre-commit
- name: Run linters
run: pre-commit run --all-files --verbose --show-diff-on-failure
build-and-test:
name: Build & test
needs: lint
runs-on: ubuntu-24.04
container:
image: osrf/ros:jazzy-desktop
steps:
- uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: jazzy
- uses: ros-tooling/action-ros-ci@v0.4
with:
package-name: gz_ekumen_worlds
target-ros2-distro: jazzy
import-token: ${{ secrets.GITHUB_TOKEN }}