Skip to content

Commit 008a1f3

Browse files
committed
add file to auto test
1 parent 94a914c commit 008a1f3

2 files changed

Lines changed: 46 additions & 2 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Cross-Platform Tests
2+
3+
## activate tests when change the version, or a test
4+
on:
5+
push:
6+
#branches: [main]
7+
paths:
8+
- 'pyproject.toml'
9+
- 'tox.ini'
10+
- 'requirements*.txt'
11+
- '.github/workflows/cross-platform.yml'
12+
13+
on:
14+
push:
15+
branches:
16+
- main
17+
- release/** # release/1.0, release/2.x, etc.
18+
tags:
19+
- 'v*' # v1.0, v2.3.1, etc.
20+
pull_request:
21+
branches:
22+
- main
23+
24+
jobs:
25+
test:
26+
runs-on: ${{ matrix.os }}
27+
strategy:
28+
matrix:
29+
os: [ubuntu-latest, windows-latest, macos-latest]
30+
python-version: ["3.10", "3.11", "3.12"]
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
40+
- name: Install tox
41+
run: pip install tox tox-gh-actions
42+
43+
- name: Run tox
44+
run: tox

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# For more information about tox, see https://tox.readthedocs.io/en/latest/
22
[tox]
3-
envlist = py{39,310,311}-{linux,macos,windows}
3+
envlist = py{310,311,312}-{linux,macos,windows}
44
isolated_build=true
55

66
[gh-actions]
77
python =
8-
3.9: py39
98
3.10: py310
109
3.11: py311
10+
3.12: py312
1111

1212
[gh-actions:env]
1313
PLATFORM =

0 commit comments

Comments
 (0)