Skip to content

Commit 9c3daaa

Browse files
committed
Lint with Bazel
1 parent 99f24e0 commit 9c3daaa

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ jobs:
2222
strategy:
2323
matrix:
2424
os: [ubuntu-24.04]
25-
include:
26-
- name: Bandit tests
27-
target: test-bandit
28-
- name: Formatting
29-
target: test-format
30-
- name: Ruff lint tests
31-
target: test-ruff
32-
- name: Python unit tests
33-
target: test-unit
34-
- name: mypy tests
35-
target: test-mypy-gpl
3625
steps:
3726
- name: Remove unnecessary build tools
3827
run: |
@@ -99,8 +88,13 @@ jobs:
9988
sudo apt-get update
10089
sudo apt-get install ksh libpango1.0-dev librrd-dev libldap2-dev libsasl2-dev libkrb5-dev libglib2.0-dev gettext "^g\+\+-14$"
10190
make .venv
102-
- name: Run ${{ matrix.name }}
103-
env:
104-
TEST_TARGETS: ${{ matrix.target }}
105-
run: |
106-
make -C tests $TEST_TARGETS
91+
- name: Formatting
92+
run: make -C tests test-format
93+
- name: Lint repo
94+
run: bazel lint --fixes=false ...
95+
- name: Check typing
96+
run: make -C tests test-mypy-gpl
97+
- name: Run Bandit
98+
run: make -C tests test-bandit
99+
- name: Run unit tests
100+
run: make -C tests test-unit

0 commit comments

Comments
 (0)