-
Notifications
You must be signed in to change notification settings - Fork 4
77 lines (63 loc) · 1.84 KB
/
build.yaml
File metadata and controls
77 lines (63 loc) · 1.84 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: build
on:
push:
pull_request:
jobs:
ci-test-matrix:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: "Run tests on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
id: setup-python
with:
allow-prereleases: true
python-version: |
3.9
3.10
3.11
3.12
3.13
3.14
# get the week of the year (1-52) for cache control
# this ensures that at least weekly we'll test with a clear cache
- name: set .weeknum.txt
run: /bin/date -u "+%U" > .weeknum.txt
shell: bash
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: ".weeknum.txt"
- run: uv tool install tox --with tox-uv
- name: test
run: tox run -m ci
other-tox-checks:
strategy:
matrix:
include:
- pythons: ["3.9", "3.13"]
tox_label: "ci-mypy"
- pythons: ["3.13"]
tox_label: "ci-package-check"
runs-on: ubuntu-latest
name: "Run '${{ matrix.tox_label }}'"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
id: setup-python
with:
python-version: "${{ join( matrix.pythons, '\n') }}"
# get the week of the year (1-52) for cache control
# this ensures that at least weekly we'll test with a clear cache
- name: set .weeknum.txt
run: /bin/date -u "+%U" > .weeknum.txt
shell: bash
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: ".weeknum.txt"
- run: uv tool install tox --with tox-uv
- run: tox run -m "${{ matrix.tox_label }}"