-
Notifications
You must be signed in to change notification settings - Fork 26
57 lines (51 loc) · 1.65 KB
/
build.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
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: '${{ matrix.os }}: ${{ matrix.tox-env }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
tox-env: [py37-test, py38-test, py39-test,
py310-test, pypy-test]
os: [ubuntu-latest, windows-latest]
# Only test on a couple of versions on Windows.
exclude:
- os: windows-latest
tox-env: py37-test
- os: windows-latest
tox-env: pypy-test
# Python interpreter versions. :/
include:
- tox-env: py37-test
python: '3.7'
- tox-env: py38-test
python: '3.8'
- tox-env: py39-test
python: '3.9'
- tox-env: py310-test
python: '3.10'
- tox-env: pypy-test
python: pypy3.9
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: pip install tox
- name: Tox
run: tox -e ${{ matrix.tox-env }}
style:
name: Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: TrueBrain/actions-flake8@master