diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-19 19:10:07 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-19 19:23:04 +0200 |
| commit | ce778a5632e89df0a2db9f5c1b20e85a4e98d547 (patch) | |
| tree | eaebdfa9a2c15790e1ba85620bf8555a54050c15 /.github/workflows/lint.yml | |
| parent | require Python 3.8 (diff) | |
| download | cmake-common-ce778a5632e89df0a2db9f5c1b20e85a4e98d547.tar.gz cmake-common-ce778a5632e89df0a2db9f5c1b20e85a4e98d547.zip | |
workflows: split out jobs from ci.yml into separate workflows
Diffstat (limited to '.github/workflows/lint.yml')
| -rw-r--r-- | .github/workflows/lint.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..1896bad --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Linting + +on: + workflow_call: + workflow_dispatch: + +jobs: + # Check that project-clang-format.py works (and the C/C++ files are formatted). + lint: + runs-on: ubuntu-latest + name: Linting + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Run clang-format + run: ./tools/project-clang-format.py + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: Run black + uses: psf/black@stable |
