Skip to content

Commit a65ccd4

Browse files
committed
always lint python
1 parent 16887f5 commit a65ccd4

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Lint
33
on: [pull_request, workflow_dispatch]
44

55
jobs:
6-
build:
6+
build-lint:
77
runs-on: ubuntu-latest
88

99
steps:
@@ -21,18 +21,21 @@ jobs:
2121
curl -L https://github.com/EmixamPP/opencv-tiny/raw/main/opencv-4.7.0.tar.xz | tar -xJ
2222
sed -i "3s@prefix=@&${PWD}/@" opencv-4.7.0/lib64/pkgconfig/opencv4.pc
2323
24-
- name: Run meson
25-
id: meson
24+
- name: Setup build
25+
id: setup
26+
run: |
27+
meson setup build --pkg-config-path opencv-4.7.0/lib64/pkgconfig
28+
29+
- name: Compile
2630
run: |
27-
meson setup build --pkg-config-path opencv-4.7.0/lib64/pkgconfig
2831
meson compile -C build
2932
30-
- name: Run clang-tidy
31-
if: steps.meson.outcome == 'success'
33+
- name: Lint C++
34+
if: steps.setup.outcome == 'success'
3235
run: |
3336
ninja clang-tidy -C build
3437
35-
- name: Run pyright
36-
if: steps.meson.outcome == 'success'
38+
- name: Lint Python
39+
if: ${{ always() }}
3740
run: |
3841
pyright $(git ls-files '*.py')

0 commit comments

Comments
 (0)