From 6c5a587e8bddcd0caa94a2fe2424cea58b1831fc Mon Sep 17 00:00:00 2001 From: Arseniy Terekhin Date: Sat, 28 Dec 2024 17:43:53 +0300 Subject: [PATCH] ci: adding black and clang-format --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d5e5a19 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file