-
Notifications
You must be signed in to change notification settings - Fork 240
73 lines (67 loc) · 1.56 KB
/
tests.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
name: Run tests
on:
pull_request:
push:
branches:
- 1.3.x
workflow_call:
workflow_dispatch:
inputs:
ref:
description: A git reference to check out.
default: 1.3.x
required: true
type: string
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.7 # 2023-06-07
- 3.8 # 2024-10
- 3.9 # 2025-10
- "3.10" # 2026-10
- 3.11 # 2027-10
- 3.12 # 2028-10
- 3.13 # 2029-10
- pypy3.7
- pypy3.8
- pypy3.9
- pypy3.10
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install tox
- run: tox -e py
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref || github.ref }}
- run: pip install --upgrade build pip
- run: python -m build --wheel
- run: pip install dist/*.whl
other:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- environment: doctest
- environment: linting
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: python -m pip install tox
- run: tox -e ${{ matrix.environment }}
...