forked from KavrakiLab/vamp
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 823 Bytes
/
format.yml
File metadata and controls
43 lines (34 loc) · 823 Bytes
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
name: Format Check
on:
push:
paths:
- src/**
- scripts/**
branches:
- main
pull_request:
paths:
- src/**
- scripts/**
branches:
- main
workflow_dispatch:
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
yes | sudo ./llvm.sh 20 || true
sudo apt-get install -y clang-format-20 python3-pip
pip install yapf
- name: Run clang-format style check.
run: >
find . -iname *.hh -o -iname *.cc | xargs -I{} clang-format-20 --dry-run -Werror {}
- name: Run yapf style check.
run: >
find . -iname *.py | xargs -I{} yapf -d {}