Skip to content

ci: adding black and clang-format #2

ci: adding black and clang-format

ci: adding black and clang-format #2

Workflow file for this run

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