-
Notifications
You must be signed in to change notification settings - Fork 38
97 lines (94 loc) · 3.06 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
91
92
93
94
95
96
97
name: Run unit tests
on:
pull_request:
push:
branches: [ main ]
tags:
- '*'
workflow_dispatch:
schedule:
# Run every Tuesday at 03:53 UTC
- cron: 53 3 * * 2
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# The aim with the matrix below is to walk through a representative but not full combination of OS, Python, and pytest versions.
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-13
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: windows-latest
python-version: '3.12'
toxenv: py312-test-pytest81
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytest82
- os: macos-latest
python-version: '3.13-dev'
toxenv: py312-test-pytest83
- os: windows-latest
python-version: '3.13-dev'
toxenv: py312-test-pytestdev
- os: macos-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytestdev-numpydev
- os: ubuntu-latest
python-version: '3.13-dev'
toxenv: py313-test-pytestdev
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
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 }}