-
Notifications
You must be signed in to change notification settings - Fork 32
41 lines (37 loc) · 1.21 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
name: Python tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python:
- { VERSION: "3.8", TOXENV: "py38", ALLOW_FAILURE: false }
- { VERSION: "3.9", TOXENV: "py39",ALLOW_FAILURE: false }
- { VERSION: "3.10", TOXENV: "py310",ALLOW_FAILURE: false }
- { VERSION: "3.11", TOXENV: "py311,pep8,pre-commit", ALLOW_FAILURE: false }
- { VERSION: "3.12", TOXENV: "py312",ALLOW_FAILURE: false }
- { VERSION: "pypy3.10", TOXENV: "pypy", ALLOW_FAILURE: false }
steps:
- name: Check out the repository
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.PYTHON.VERSION }}
allow-prereleases: true
- name: Upgrade pip
run: |
pip install -U pip
pip --version
- name: Install Tox
run: |
pip install -U tox
tox --version
- name: Run Tox
run: tox
env:
TOXENV: ${{ matrix.PYTHON.TOXENV }}
GH_RECORD_MODE: "none"
continue-on-error: ${{ matrix.PYTHON.ALLOW_FAILURE }}