-
Notifications
You must be signed in to change notification settings - Fork 206
87 lines (78 loc) · 2.42 KB
/
tox_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
name: Tox tests on SDK packages
on: [push, pull_request]
jobs:
linux-tests:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
tox-env: [py27-mylinux, py36-mylinux, py37-mylinux, py38-mylinux]
include:
- tox-env: py27-mylinux
python-version: 2.7
- tox-env: py36-mylinux
python-version: 3.6
- tox-env: py37-mylinux
python-version: 3.7
- tox-env: py38-mylinux
python-version: 3.8
env:
TOXENV: ${{ matrix.tox-env }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: python -m pip install --upgrade pip setuptools tox
- name: Test with tox ${{ matrix.tox-env }}
run: python -m tox
mac-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
tox-env: [py37-mymacos, py38-mymacos]
include:
- tox-env: py37-mymacos
python-version: 3.7
- tox-env: py38-mymacos
python-version: 3.8
env:
TOXENV: ${{ matrix.tox-env }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: python -m pip install --upgrade pip setuptools tox
- name: Test with tox ${{ matrix.tox-env }}
run: python -m tox
windows-tests:
continue-on-error: true
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
tox-env: [py37-mywin, py38-mywin]
include:
- tox-env: py37-mywin
python-version: 3.7
- tox-env: py38-mywin
python-version: 3.8
env:
TOXENV: ${{ matrix.tox-env }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: python -m pip install --upgrade pip setuptools tox
- name: Test with tox ${{ matrix.tox-env }}
run: python -m tox