-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (38 loc) · 1.23 KB
/
lint.yml
File metadata and controls
39 lines (38 loc) · 1.23 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
# Runs several checks
# * check-matrix.py because GitHub limits a workflow matrix to 256 jobs
# https://docs.github.com/en/actions/reference/usage-limits-billing-and-administration#usage-limits
# * check-patches.py to make sure applying patches via TuxSuite works correctly
# * several linters for Python consistency and correctness
name: Lint checks
on: [push, pull_request]
jobs:
check_matrices:
name: Check workflow matrices
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: check-matrix.py
run: python3 scripts/check-matrix.py
check_generated_files:
name: Check generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
- name: generate.py
run: generator/generate.py --check
check_patch_series:
name: Check patches series
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: check-patches.py
run: python3 scripts/check-patches.py
python:
strategy:
fail-fast: false
matrix:
version: ['3.14', '3.13', '3.12', '3.11', '3.10']
uses: ClangBuiltLinux/actions-workflows/.github/workflows/python_lint.yml@main
with:
python_version: ${{ matrix.version }}