-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (44 loc) · 1.21 KB
/
build.yaml
File metadata and controls
46 lines (44 loc) · 1.21 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
name: Python
on:
workflow_call:
pull_request:
paths:
- "src/**"
- ".github/workflows/**"
push:
branches:
- main
jobs:
build_clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install libeigen3-dev
- name: Check clang format
run: make cppcheckformat
- name: Clang build
run: make clangcompile PYTHON_EXECUTABLE=${{ steps.setup-python.outputs.python-path }}
pythonpackage:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Install CPP dependencies
run: sudo apt install libeigen3-dev
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install the package
run: python -m pip install '.[dev]'
- name: Code formatting
run: make pyformat
- name: Code linting
run: make pylint
- name: Check that stub files are up-to-date
run: make stubgen && git diff --exit-code
- name: Ensure all unittests(pytest) are passing
run: make pytest