first draft of gh actions for tox

This commit is contained in:
Brian Merriam 2023-03-20 23:08:10 +00:00
parent bcd156e83b
commit 787ab88844
2 changed files with 44 additions and 0 deletions

38
.github/workflows/check.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: check
on:
push:
pull_request:
# schedule:
# - cron: "0 8 * * *"
jobs:
test:
name: test ${{ matrix.py }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os:
- Ubuntu
- Windows
- MacOs
py:
- "3.10.0-rc.1"
- "3.9"
- "3.8"
- "3.7"
- "3.6"
steps:
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- uses: actions/checkout@v2
- name: Install tox-gh
run: python -m pip install tox-gh
- name: Setup test suite
run: tox4 r -vv --notest
- name: Run test suite
run: tox4 r --skip-pkg-install
env:
PYTEST_ADDOPTS: "-vv --durations=10"

View File

@ -85,3 +85,9 @@ deps =
commands =
check-manifest
[gh]
python =
3.6 = py36
3.7 = py37
3.8 = py38
3.9 = py39, type