-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 844 Bytes
/
lint.yaml
File metadata and controls
30 lines (30 loc) · 844 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
name: lint
on: pull_request_target
concurrency:
group: ${{ github.workflow }}--${{ github.head_ref }} # github.ref is unavailable in case of pull_request_target
cancel-in-progress: true
permissions: {}
jobs:
status-check:
runs-on: ubuntu-24.04
if: failure()
timeout-minutes: 10
permissions: {}
needs:
- lint
steps:
- run: exit 1
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
with:
python-version-file: .python-version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run linters
run: |
pylint *.py