Skip to content

Commit 4093dbc

Browse files
committed
Add github actions test workflow
1 parent 5d44207 commit 4093dbc

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python:
16+
- '3.9'
17+
- '3.10'
18+
- '3.11'
19+
- '3.12'
20+
- '3.13'
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Install Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python }}
27+
- name: Install tox
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install tox tox-gh
31+
- name: Set up test suite
32+
run: python -m tox run -vv --notest --skip-missing-interpreters false
33+
env:
34+
TOX_GH_MAJOR_MINOR: ${{ matrix.python }}
35+
- name: Run test suite
36+
run: python -m tox run --skip-pkg-install
37+
env:
38+
TOX_GH_MAJOR_MINOR: ${{ matrix.python }}

0 commit comments

Comments
 (0)