ποΈ Updated build scripts as well. #392
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |