-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 980 Bytes
/
format.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
name: Format
on: [push]
jobs:
format-check:
name: 📀 Formatting
runs-on: ubuntu-latest
steps:
# Global part
- name: 🔔 Check out
uses: actions/checkout@v3
# C++ part
- name: 🏗️ 🏃 clang-format
uses: DoozyX/[email protected]
with:
source: ./cpp
extensions: h,c,hpp,cpp
clangFormatVersion: 18
# Python part
- name: 🏗️ python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: ⬇️ Python Poetry
uses: pdm-project/setup-pdm@v3
- name: ⬇️ Python Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.4
installer-parallel: true
- name: 🏃 autoflake, isort, black
working-directory: ./python
run: |
poetry run autoflake --check .
poetry run isort --check .
poetry run black --check .