-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (44 loc) · 1.03 KB
/
test.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
name: Test
on:
pull_request:
push:
env:
PYTHONUNBUFFERED: "1"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
python: "3.7"
toxenv: cp37
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install
run: pip install -q -r "tox-requirements.txt"
- name: Run tests
continue-on-error: ${{ matrix.continue-on-error }}
env:
TOXENV: ${{ matrix.toxenv }}
run: tox -v
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install
run: pip install -q -r "tox-requirements.txt"
- name: Run tests
env:
TOXENV: flake8
run: tox -v