-
-
Notifications
You must be signed in to change notification settings - Fork 7
90 lines (87 loc) · 2.59 KB
/
python-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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Run unit tests
on:
pull_request:
push:
branches: [ main ]
tags:
- '*'
workflow_dispatch:
schedule:
# Run every Thursday at 03:53 UTC
- cron: 53 3 * * 4
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python-version: 3.8
toxenv: py38-test-pytestoldest
- os: windows-latest
python-version: 3.8
toxenv: py38-test-pytest50
- os: macos-latest
python-version: 3.8
toxenv: py38-test-pytest51
- os: ubuntu-latest
python-version: 3.8
toxenv: py38-test-pytest52
- os: windows-latest
python-version: 3.8
toxenv: py38-test-pytest53
- os: ubuntu-latest
python-version: 3.8
toxenv: py38-test-pytest60
- os: ubuntu-latest
python-version: 3.9
toxenv: py39-test-pytest61
- os: ubuntu-latest
python-version: 3.9
toxenv: py39-test-pytest62
- os: ubuntu-latest
python-version: '3.10'
toxenv: py310-test-pytest70
- os: ubuntu-latest
python-version: '3.10'
toxenv: py310-test-pytest71
- os: windows-latest
python-version: '3.11'
toxenv: py311-test-pytest72
- os: ubuntu-latest
python-version: '3.11'
toxenv: py311-test-pytest73
- os: ubuntu-latest
python-version: '3.11'
toxenv: py311-test-pytest74
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: macos-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: windows-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: macos-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: windows-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytestdev
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox
run: python -m pip install tox
- name: Run Tox
run: tox ${{ matrix.toxargs }} -v -e ${{ matrix.toxenv }}