first draft of gh actions for tox
This commit is contained in:
parent
bcd156e83b
commit
787ab88844
|
@ -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"
|
Loading…
Reference in New Issue