Skip to content

Commit 16bad1a

Browse files
committed
.github: Add Action to run pytest on tox
1 parent b6abbbc commit 16bad1a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@ on:
1111
- '*'
1212

1313
jobs:
14+
tox:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
19+
python: ['3.9', '3.x']
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
fetch-depth: 0
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python }}
29+
- run: pip install --upgrade pip
30+
- run: pip install tox
31+
- run: tox -e py
32+
1433
ubuntu22:
1534
name: Ubuntu 22.04 x86_64
1635
runs-on: ubuntu-22.04

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
2-
envlist = py{37, 36}
2+
envlist = py{39, 310, 311, 312, 313}
3+
skip_missing_interpreters = true
34

45
[testenv]
56
deps =

0 commit comments

Comments
 (0)