-
Notifications
You must be signed in to change notification settings - Fork 35
49 lines (46 loc) · 1.08 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: main
on:
push:
branches: [master]
tags: ["*"]
pull_request:
paths-ignore:
- .gitignore
- LICENSE
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: py39
python: "3.9"
toxenv: py39
- name: py310
python: "3.10"
toxenv: py310
- name: py311
python: "3.11"
toxenv: py311
- name: py312
python: "3.12"
toxenv: py312
- name: black
python: "3.12"
toxenv: black
- name: ruff
python: "3.12"
toxenv: ruff
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: install tox
run: pip install --upgrade setuptools tox==4.11.3
- name: setup tox environment
run: tox -e ${{ matrix.toxenv }} --notest
- name: test
run: tox -e ${{ matrix.toxenv }}