Skip to content

Commit 6aa2436

Browse files
committed
ci: update tests workflow
1 parent 3073909 commit 6aa2436

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

.github/workflows/tests.yml

+17-13
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,28 @@ permissions:
77

88
jobs:
99
test:
10+
# https://docs.github.com/zh/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners
1011
runs-on: ${{ matrix.os }}
1112
timeout-minutes: 10
1213
strategy:
1314
fail-fast: false
1415
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
16+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1617
os: [ubuntu-22.04, macOS-latest, windows-latest]
18+
exclude:
19+
- os: macos-latest
20+
python-version: "3.7"
1721

1822
steps:
19-
- uses: actions/checkout@v2
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install tox tox-gh-actions
28-
- name: Run tests
29-
run: |
30-
tox
23+
- uses: actions/checkout@v4
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install tox
32+
- name: Run tests
33+
run: |
34+
tox -e py

tox.ini

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
min_version = 4.0
3-
envlist = py{37,38,39,310,311}
3+
envlist = py{37,38,39,310,311,312,313}
44
requires =
55
virtualenv-pyenv>=0.3.0
66
setenv = VIRTUALENV_DISCOVERY=pyenv
@@ -12,6 +12,8 @@ python =
1212
3.9: py39
1313
3.10: py310
1414
3.11: py311
15+
3.12: py312
16+
3.13: py313
1517

1618
[testenv]
1719
commands =

0 commit comments

Comments
 (0)