blob: a266152c3f26d823fbe7306b418992daa67c5f4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
name: Linting
on:
workflow_call:
workflow_dispatch:
permissions: {}
jobs:
# Check that project.format works (and the C/C++ files are formatted).
lint:
runs-on: ubuntu-latest
name: Linting
continue-on-error: "${{ github.ref != 'refs/heads/master' }}"
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.x'
- name: Run clang-format
run: python -m project.format
- name: Run black
uses: psf/black@stable
- name: Run zizmor
uses: zizmorcore/zizmor-action@v0.7.1
|