Debian Codegraph @

.github/workflows/lint.yml

raw
1 # Check source.
2 name: lint
3 on:
4 pull_request:
5 branches:
6 - main
7 push:
8 branches:
9 - main
10 permissions: read-all
11 jobs:
12 black:
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@v6
16 - name: Check format of Python code
17 uses: psf/black@stable
18 with:
19 options: "--check"
20 src: "."
21 pylint:
22 runs-on: ubuntu-latest
23 strategy:
24 matrix:
25 python-version: ['3.14']
26 container:
27 image: ubuntu:26.04
28 steps:
29 - uses: actions/checkout@v6
30 - name: Set up container
31 env:
32 DEBIAN_FRONTEND: noninteractive
33 run: |
34 apt update -q
35 apt install -y libterm-readline-gnu-perl locales software-properties-common
36 locale-gen en_US.UTF-8
37 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
38 - name: Install dependencies
39 env:
40 DEBIAN_FRONTEND: noninteractive
41 run: |
42 add-apt-repository -y universe
43 add-apt-repository -y ppa:deadsnakes/ppa
44 add-apt-repository -y ppa:gift/dev
45 apt update -q
46 apt install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox
47 - name: Run linter
48 env:
49 LANG: en_US.UTF-8
50 run: |
51 tox -e pylint