Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/pr-lint-filtered.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PR Lint (only when specific files are changed)

on:
pull_request:
paths:
- 'app/**'
- 'Dockerfile'
- 'playbook.yml'
- '.github/workflows/**'

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install lint dependencies
run: |
python -m pip install --upgrade pip
pip install flake8

- name: Run flake8 on app
run: |
flake8 app || echo "Lint warnings (non-fatal for now)"