Skip to content

Commit 6f56701

Browse files
authored
Merge pull request #2 from cyrixrr/filtered-workflow
Added second workflow that trigers only when a file is changed
2 parents 0e80a27 + 502f329 commit 6f56701

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
31+
flake8 app || echo "Lint warnings (non-fatal for now)"
32+

0 commit comments

Comments
 (0)