-
Notifications
You must be signed in to change notification settings - Fork 22
executable file
·44 lines (36 loc) · 1.01 KB
/
ci-lint.yml
File metadata and controls
executable file
·44 lines (36 loc) · 1.01 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-FileCopyrightText: Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: CI - Linting
on:
push:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install dependencies
run: |
apt-get update && apt-get install -y clang-format
pip install reuse black
- name: Check Licenses
if: success() || failure()
shell: bash
run: |
reuse download --all
reuse lint
- name: Format Python
if: success() || failure()
run: |
black --diff .
black --check .
- name: Format C++
if: success() || failure()
run: |
python scripts/clang-format-wrapper.py --diff
python scripts/clang-format-wrapper.py --check