-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.15 KB
/
lint-canary.yaml
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
37
38
39
name: Lint Canary
on:
pull_request:
# Only consider PRs that change files for this asset, including ci scripts
paths:
- '.github/workflows/lint-canary-flake8.yaml'
- '.github/workflows/build-canary-container.yaml'
- 'containers/canary/**'
- 'src/**'
# Make sure all workflows that are "required checks" for a given
# branch protection rule have the same paths: and branches-ignore:
# filters. Otherwise, you can end up in a deadlock waiting on a
# required check that will never be executed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# This linting can be cancelled if there is a newer commit to lint
cancel-in-progress: true
jobs:
canary-flake8:
runs-on:
labels: [self-hosted, linux, x64]
group: light
steps:
- name: clone repo
uses: actions/checkout@v4
- name: install flake8
run: pip install flake8
- name: install flake8 annotations
uses: rbialon/flake8-annotations@v1
- name: run flake8
run: |
flake8 --config=".github/.flake8" src