-
Notifications
You must be signed in to change notification settings - Fork 12
108 lines (92 loc) · 2.36 KB
/
tox.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
98
99
100
101
102
103
104
105
106
107
108
name: tox
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
toxenv:
- lint
- checkdoc
- mypy
steps:
- uses: actions/checkout@v2
- name: Setup python${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install tox
run: python -m pip install tox
- name: tox ${{ matrix.toxenv }}
run: tox
env:
TOXENV: ${{ matrix.toxenv }}
FORCE_COLOR: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
tests:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- toxenv: py38
python: "3.8"
os: ubuntu-latest
- toxenv: py39
python: "3.9"
os: ubuntu-latest
- toxenv: py310
python: "3.10"
os: ubuntu-latest
- toxenv: py311
python: "3.11"
os: ubuntu-latest
- toxenv: py312
python: "3.12"
os: ubuntu-latest
- toxenv: py38
python: "3.8"
os: windows-latest
- toxenv: py39
python: "3.9"
os: windows-latest
- toxenv: py310
python: "3.10"
os: windows-latest
- toxenv: py311
python: "3.11"
os: windows-latest
- toxenv: py38
python: "3.8"
os: macos-latest
- toxenv: py39
python: "3.9"
os: macos-latest
- toxenv: py310
python: "3.10"
os: macos-latest
- toxenv: py311
python: "3.11"
os: macos-latest
- toxenv: py312
python: "3.12"
os: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup python${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python }}"
- name: Install tox
run: python -m pip install tox
- name: tox ${{ matrix.toxenv }}
run: tox
env:
TOXENV: ${{ matrix.toxenv }}
FORCE_COLOR: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}