-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.09 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: main
cancel-in-progress: true
permissions:
contents: read
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: 'Pre-commit checks'
uses: ./.github/workflows/templates/checks
with:
python_version: "3.11"
pre_commit_version: "4.0.1"
directory: "src"
- name: 'Pyright type checks'
uses: ./.github/workflows/templates/pyright_type_checks
with:
uv_version: "0.4.27"
python_version: "3.11"
pyright_version: "1.1.385"
tests:
runs-on: ubuntu-latest
needs: checks
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: checkout
uses: actions/checkout@v4
- name: 'tests'
uses: ./.github/workflows/templates/tests
with:
uv_version: "0.4.27"
python_version: ${{ matrix.python_version }}
directory: "tests"