Skip to content

Commit 4d9a545

Browse files
committed
Lint with Bazel
1 parent 54dda59 commit 4d9a545

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +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: Python unit tests
31-
target: test-unit
32-
- name: mypy tests
33-
target: test-mypy-gpl
3425
steps:
3526
- name: Remove unnecessary build tools
3627
run: |
@@ -97,8 +88,13 @@ jobs:
9788
sudo apt-get update
9889
sudo apt-get install ksh libpango1.0-dev librrd-dev libldap2-dev libsasl2-dev libkrb5-dev libglib2.0-dev gettext "^g\+\+-14$"
9990
make .venv
100-
- name: Run ${{ matrix.name }}
101-
env:
102-
TEST_TARGETS: ${{ matrix.target }}
103-
run: |
104-
make -C tests $TEST_TARGETS
91+
- name: Formatting
92+
run: bazel run //:format.check
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)