-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.5 KB
/
Copy pathci.yaml
File metadata and controls
62 lines (50 loc) · 1.5 KB
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
60
61
62
name: Python
on:
workflow_call:
pull_request:
push:
branches:
- master
jobs:
pythonpackage:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Checkout RCS
uses: actions/checkout@v4
with:
repository: RobotControlStack/robot-control-stack
ref: master
path: robot-control-stack
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y $(cat robot-control-stack/debian_deps.txt) xvfb
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: |
pyproject.toml
robot-control-stack/pyproject.toml
- name: Upgrade pip
run: |
python -m pip install --upgrade "pip>=25.1"
python -m pip --version
- name: Install RCS build dependencies
run: python -m pip install --group ./robot-control-stack/pyproject.toml:build_deps
- name: Install RCS
run: python -m pip install -ve ./robot-control-stack
- name: Install DuoBench
run: python -m pip install -ve . --group dev
- name: Check formatting
run: make pycheckformat
- name: Code linting
run: make pylint
- name: Ensure all unittests(pytest) are passing
run: xvfb-run -a make pytest