-
Notifications
You must be signed in to change notification settings - Fork 7
69 lines (61 loc) · 1.4 KB
/
build-and-test.yaml
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
name: Pycrunch package test
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
test:
runs-on: ubuntu-20.04
container:
image: python:${{ matrix.python-version }}-slim
strategy:
max-parallel: 4
matrix:
python-version:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox ${{env.TOXENV}}
if: matrix.python-version == '3.6'
env:
TOXENV: py27,py36,coverage
run: tox
- name: Test with tox Python 3.7
if: matrix.python-version == '3.7'
env:
TOXENV: py37
run: tox
- name: Test with tox Python 3.8
if: matrix.python-version == '3.8'
env:
TOXENV: py38
run: tox
- name: Test with tox Python 3.9
if: matrix.python-version == '3.9'
env:
TOXENV: py39
run: tox
- name: Lint Test with tox Python 3.6
if: matrix.python-version == '3.6'
env:
TOXENV: lint
run: tox
continue-on-error: true