We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e80a27 + 502f329 commit 6f56701Copy full SHA for 6f56701
1 file changed
.github/workflows/pr-lint-filtered.yml
@@ -0,0 +1,32 @@
1
+name: PR Lint (only when specific files are changed)
2
+
3
+on:
4
+ pull_request:
5
+ paths:
6
+ - 'app/**'
7
+ - 'Dockerfile'
8
+ - 'playbook.yml'
9
+ - '.github/workflows/**'
10
11
+jobs:
12
+ lint:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Check out code
17
+ uses: actions/checkout@v4
18
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: '3.11'
23
24
+ - name: Install lint dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install flake8
28
29
+ - name: Run flake8 on app
30
31
+ flake8 app || echo "Lint warnings (non-fatal for now)"
32
0 commit comments