-
Notifications
You must be signed in to change notification settings - Fork 49
47 lines (40 loc) · 947 Bytes
/
code-lint.yml
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
40
41
42
43
44
45
46
47
name: code-lint
on:
push:
branches:
- main
paths:
- 'configs/**'
- 'edgelab/**'
- 'tools/**'
- 'pyproject.toml'
- '.pre-commit-config.yaml'
- '.github/workflows/code-lint.yml'
pull_request:
branches:
- dev
paths:
- 'configs/**'
- 'edgelab/**'
- 'tools/**'
- 'pyproject.toml'
- '.pre-commit-config.yaml'
- '.github/workflows/code-lint.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- name: install dependencies
run: python -m pip install -r requirements/tests.txt
- name: ruff lint
run: python -m ruff .