Skip to content

Commit c6b90c0

Browse files
committed
Add github action to run lint source code
Uses existing `tools/run_linters.py` script and runs using Arch Linux image to have the linters run the latest versions.
1 parent 0aea9b2 commit c6b90c0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# SPDX-FileCopyrightText: 2024 igo95862
3+
---
4+
name: CI
5+
6+
on:
7+
push:
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
linters:
13+
name: Run source code linters
14+
runs-on: ubuntu-latest
15+
container:
16+
image: docker.io/archlinux:latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Install linters
21+
run: |
22+
pacman --noconfirm -Syu \
23+
reuse python-pyflakes python-black \
24+
python-isort mypy codespell
25+
- name: Run linters
26+
run: |
27+
python3 tools/run_linters.py

0 commit comments

Comments
 (0)