Skip to content

Commit a0ceace

Browse files
Add tox action
1 parent a32b63d commit a0ceace

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/tox.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Tox
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- src
10+
- tests
11+
- pyproject.toml
12+
- tox.ini
13+
pull_request:
14+
branches:
15+
- main
16+
paths:
17+
- src
18+
- tests
19+
- pyproject.toml
20+
- tox.ini
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
run-all-tests:
28+
name: Py${{ matrix.py }} / ${{ matrix.os }}
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
os: [ubuntu-latest, windows-latest, macos-latest]
34+
py: ["3.8", "3.9", "3.10", "3.11"]
35+
steps:
36+
- name: Set up Python ${{ matrix.py }}
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: ${{ matrix.py }}
40+
41+
- name: Checkout parent repository
42+
uses: actions/checkout@v4
43+
with:
44+
repository: NTIA/p2108
45+
ref: AddPythonWrapper # Todo remove
46+
47+
- name: Clone required submodules
48+
run: |
49+
git submodule init wrap/python
50+
git submodule update
51+
52+
- name: Install tox-gh
53+
run: python -m pip install tox-gh
54+
55+
- name: Set up test suite
56+
run: tox r -vv --notest
57+
58+
- name: Run test suite
59+
run: tox r --skip-pkg-install
60+
env:
61+
PYTEST_ADDOPTS: "-vv --durations=0"

0 commit comments

Comments
 (0)