-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 907 Bytes
/
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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Python ${{ matrix.python }} Tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python:
- '3.10'
- '3.9'
- '3.8'
- '3.7'
- '3.6'
- 'pypy-3.7'
- 'pypy-3.8'
- 'pypy-3.9'
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: pip install tox
- name: Lint
if: ${{ matrix.python == '3.9' }}
run: python3 -m tox -e lint
- name: Typechecks
if: ${{ matrix.python == '3.9' }}
run: python3 -m tox -e typechecks
- name: Test
run: python3 -m tox -e py