ci: add path filters to lint and codeql workflows, fixes #9328

This commit is contained in:
Mrityunjay Raj 2026-02-14 23:26:41 +05:30
parent b9d636934b
commit 7ca00c0f70
2 changed files with 19 additions and 1 deletions

View file

@ -3,7 +3,15 @@
name: Lint
on: [push, pull_request]
on:
push:
paths:
- '**.py'
- 'pyproject.toml'
pull_request:
paths:
- '**.py'
- 'pyproject.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}

View file

@ -5,9 +5,19 @@ name: "CodeQL"
on:
push:
branches: [ master ]
paths:
- '**.py'
- '**.pyx'
- '**.c'
- '**.h'
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths:
- '**.py'
- '**.pyx'
- '**.c'
- '**.h'
schedule:
- cron: '39 2 * * 5'