-
-
Notifications
You must be signed in to change notification settings - Fork 3
80 lines (72 loc) · 2.01 KB
/
test.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
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
78
79
80
name: "🧪 Test"
on:
pull_request:
push:
branches:
- "main"
- "releases"
jobs:
test:
name: "${{ matrix.name }}"
strategy:
matrix:
# 'name' is used here to create four matrix environments;
# the values are matched in the 'include' items, below,
# to augment and customize the matrix environments.
name:
- "Linux"
- "macOS"
- "Windows"
- "Quality"
cache-key-hash-files:
- - "pyproject.toml"
- "requirements/*/*.txt"
cache-paths:
- - ".mypy_cache/"
include:
# Test extensively on Linux.
- name: "Linux"
runner: "ubuntu-latest"
cpythons:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
cpython-beta: "3.13"
pypys:
- "3.9"
- "3.10"
tox-post-environments:
- "py3.9-minimum_dependencies"
- "py3.9-http-lxml"
- "py3.12-http-lxml"
# Test lowest and highest versions on Mac.
- name: "macOS"
runner: "macos-latest"
cpythons:
- "3.9"
- "3.12"
tox-environments:
- "py3.9"
- "py3.12"
# Test lowest and highest versions on Windows.
- name: "Windows"
runner: "windows-latest"
cpythons:
- "3.9"
- "3.12"
tox-environments:
- "py3.9"
- "py3.12"
# Check type annotations and documentation.
- name: "Quality"
runner: "ubuntu-latest"
cpythons:
- "3.12"
tox-environments:
- "docs"
- "mypy"
cache-key-prefix: "quality"
uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@0479d6173b4a31bce38fa1e330617bc03651f834" # v0.3
with:
config: "${{ toJSON(matrix) }}"