-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 987 Bytes
/
Copy pathpython-lint.yml
File metadata and controls
37 lines (34 loc) · 987 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
35
36
name: Python code checkup
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
uv sync --locked --all-extras --dev
uv pip install flake8
uv pip install pylint
uv pip install bandit
- name: Analysing the code with pylint
continue-on-error: true
run: |
uv run pylint $(git ls-files '*.py')
- name: Analysing the code with flak8
continue-on-error: true
run: |
uv run flake8 $(git ls-files '*.py')
- name: Analysing the code with bandit
continue-on-error: true
run: |
uv run bandit $(git ls-files '*.py')