-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (29 loc) · 887 Bytes
/
tox.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
name: Tox
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { python-version: "3.8", tox-env: "py38" }
- { python-version: "3.9", tox-env: "py39" }
- { python-version: "3.10", tox-env: "py310" }
- { python-version: "3.11", tox-env: "py311" }
- { python-version: "3.12", tox-env: "py312,py312-type" }
name: Python ${{ matrix.python-version }} tests
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Run tests and type checking
run: tox -e ${{matrix.tox-env }}