File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments