Skip to content

Commit

Permalink
ci: adding black and clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
senyai committed Dec 28, 2024
1 parent e2c37a7 commit 6c5a587
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
main:
name: Main pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r python/requirements.txt
- uses: psf/black@stable
- name: 'clang-format'
run: |
find src include -name '*.cpp' -o -name '*.h' -o -name '*.hpp' | xargs clang-format --Werror -n
# - name: wheel
# run: |
# pip install build
# python -m build . --wheel

0 comments on commit 6c5a587

Please sign in to comment.