-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 922 Bytes
/
lint.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
40
name: lint
run-name: linting
on:
push:
branches: [main]
paths: ["src/**", "tests/**"]
pull_request:
types: [opened]
paths: ["src/**", "tests/**"]
workflow_dispatch:
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install python3.10
uses: actions/setup-python@v4
with:
python-version: "3.10.13"
- name: install dependencies
run: pip install ".[style]"
- name: run format
run: ./scripts/format.sh
lint:
needs: [format]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install python3.10.13
uses: actions/setup-python@v4
with:
python-version: "3.10.13"
- name: install dependencies
run: pip install ".[style]"
- name: run lint
run: ./scripts/lint.sh