-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1019 Bytes
/
ci.yaml
File metadata and controls
40 lines (34 loc) · 1019 Bytes
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
name: CI
on: ["push"]
jobs:
check-ros2-workspace:
runs-on: ubuntu-22.04-arm
steps:
# clone the repo to the test runner (cloud computer)
- uses: actions/checkout@v4
with:
fetch-depth: 0
# install pixi
- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.9.0
with:
pixi-version: v0.49.0
cache: true
# build the workspace
- name: Build ROS 2 workspace
run: |
eval "$(pixi shell-hook)"
colcon build --symlink-install
# do python typechecking w/ `basedpyright`
- name: Typeck with `basedpyright` (Python)
shell: bash
run: |
eval "$(pixi shell-hook)"
. install/local_setup.bash
basedpyright src/
# lint python code w/ `ruff check`
- name: Lint (Python)
run: pixi run ruff check
# check python code formatting w/ `ruff format`
- name: Format with Ruff (Python)
run: pixi run ruff format --check