Skip to content

Commit 6c5a587

Browse files
committed
ci: adding black and clang-format
1 parent e2c37a7 commit 6c5a587

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
main:
11+
name: Main pipeline
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.10'
18+
cache: 'pip'
19+
- run: pip install -r python/requirements.txt
20+
- uses: psf/black@stable
21+
- name: 'clang-format'
22+
run: |
23+
find src include -name '*.cpp' -o -name '*.h' -o -name '*.hpp' | xargs clang-format --Werror -n
24+
# - name: wheel
25+
# run: |
26+
# pip install build
27+
# python -m build . --wheel

0 commit comments

Comments
 (0)