forked from ElasticProvisioner/aistore
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 962 Bytes
/
Copy pathlint-python.yml
File metadata and controls
36 lines (33 loc) · 962 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: Lint Python
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, labeled, ready_for_review]
branches:
- main
workflow_dispatch:
jobs:
lint:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v7
# pylint/astroid (see python/aistore/lint_requirements) require Python >= 3.10.
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Lint python
env:
# GitHub's runners can report a cgroup CPU quota of 1, which makes
# pylint's jobs=0 auto-detect fall back to single-process mode and
# hit a spurious astroid inference error
# Force >=2 workers here only; GitLab CI and local runs keep auto-detect.
PYLINT_JOBS: 2
run: |
make lint-python