-
-
Notifications
You must be signed in to change notification settings - Fork 103
58 lines (55 loc) · 1.83 KB
/
Copy pathmain.yml
File metadata and controls
58 lines (55 loc) · 1.83 KB
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
50
51
52
53
54
55
56
57
58
name: tox
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: tox (${{ matrix.tox-env }})
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.10'
tox-env: py310
- python-version: '3.11'
tox-env: py311
- python-version: '3.12'
tox-env: py312
- python-version: '3.13'
tox-env: py313
- python-version: '3.14'
tox-env: py314
# Python 3.15 is a pre-release and currently unsupported by
# typing_extensions (no released version survives
# `from typing_extensions import *` on 3.15 because
# no_type_check_decorator is still listed in __all__ after its
# removal from typing), which breaks the python_utils import.
# Failures are advisory until upstream catches up.
- python-version: '3.15-dev'
tox-env: py315
experimental: true
- python-version: '3.14'
tox-env: docs
- python-version: '3.14'
tox-env: black
- python-version: '3.14'
tox-env: ruff
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip tox
- name: Test with tox
# Step-level continue-on-error keeps the job green for
# experimental (pre-release Python) environments while still
# showing the failing step in the logs
continue-on-error: ${{ matrix.experimental || false }}
run: tox -e ${{ matrix.tox-env }}