Skip to content

Commit 7bc59b7

Browse files
committed
ci: add initial ci
1 parent eee7664 commit 7bc59b7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
on: ["push"]
3+
4+
jobs:
5+
check-ros2-workspace:
6+
runs-on: ubuntu-22.04-arm
7+
steps:
8+
# clone the repo to the test runner (cloud computer)
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
13+
# install pixi
14+
- name: Install Pixi
15+
uses: prefix-dev/[email protected]
16+
with:
17+
pixi-version: v0.49.0
18+
cache: true
19+
20+
# build the workspace
21+
- name: Build ROS 2 workspace
22+
run: |
23+
eval "$(pixi shell-hook)"
24+
colcon build --symlink-install
25+
26+
# do python typechecking w/ `basedpyright`
27+
- name: Typeck with `basedpyright` (Python)
28+
shell: bash
29+
run: |
30+
eval "$(pixi shell-hook)"
31+
. install/local_setup.bash
32+
basedpyright src/
33+
34+
# lint python code w/ `ruff check`
35+
- name: Lint (Python)
36+
run: pixi run ruff check
37+
38+
# check python code formatting w/ `ruff format`
39+
- name: Format with Ruff (Python)
40+
run: pixi run ruff format --check

0 commit comments

Comments
 (0)