-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 906 Bytes
/
python-lint.yml
File metadata and controls
34 lines (28 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Python Lint
# NOTE: This workflow must be kept in sync with the 'lint-python' target in the root Makefile.
# The Makefile target performs the same checks locally. When adding or modifying
# Python linting configuration, update both this workflow and the Makefile to ensure consistency.
# The workflow runs: make lint-python
on:
push:
paths:
- 'test-scripts/**/*.py'
- '.flake8'
- '.pylintrc'
- 'Makefile'
pull_request:
jobs:
lint:
name: Lint Python Scripts
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install Python lint tooling
run: pip install -r test-scripts/requirements-lint.txt
- name: Run python linting
run: make lint-python