-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (44 loc) · 1.18 KB
/
lint.yml
File metadata and controls
49 lines (44 loc) · 1.18 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
45
46
47
48
49
---
name: Lint scripts
on:
push:
paths:
- usr/lib/python3/dist-packages/stdisplay/
- .github/workflows/lint.yml
- run-tests
pull_request:
paths:
- usr/lib/python3/dist-packages/stdisplay/
- .github/workflows/lint.yml
- run-tests
jobs:
lint:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- image: debian:stable
- image: debian:testing
- image: debian:unstable
- image: ubuntu:latest
- image: ubuntu:rolling
container:
image: ${{ matrix.image }}
steps:
- name: Install linters
run: |
apt-get update --error-on=any
apt-get dist-upgrade -y
apt-get install -y git python3-pytest pylint mypy black ncurses-term \
build-essential debhelper dh-python dh-apparmor
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v4
- name: Test build
run: |
dpkg-buildpackage -b -i -us -uc
apt-get install -y ../helper-scripts*.deb
- name: Run linters
run: |
set -o xtrace
./run-tests