-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
49 lines (41 loc) · 985 Bytes
/
actions.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
48
49
name: Actions
on:
pull_request:
branches:
- main
- next
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
cache: "pip"
cache-dependency-path: "requirements.txt"
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
build:
name: Build
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
cache: "pip"
cache-dependency-path: "requirements.txt"
- name: Setup
run: scripts/setup
- name: Build
run: scripts/build