-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1.06 KB
/
check-code-quality.yaml
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
name: check-code-quality
on:
pull_request:
branches:
- main
jobs:
check-rust-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Check Rust code formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
check-python-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Python code formatting
uses: chartboost/ruff-action@v1
with:
args: format --check
check-cpp-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check C++ code formatting
uses: DoozyX/clang-format-lint-action@v0.18.1
with:
source: '.'
exclude: './fracgm/src/mcis/eigen ./fracgm/src/mcis/pmc ./examples/cpp/builddir'
extensions: 'h,c,cpp'
clangFormatVersion: '18.1.8'