2020-09-21 06:49:00 +00:00
|
|
|
name: check
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 8 * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test on ${{ matrix.py }} under ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- Ubuntu
|
|
|
|
py:
|
|
|
|
- 3.9-dev
|
|
|
|
- 3.8
|
|
|
|
- 3.7
|
|
|
|
- 3.6
|
|
|
|
- 3.5
|
|
|
|
- 3.4
|
|
|
|
- 2.7
|
|
|
|
- pypy3
|
|
|
|
- pypy2
|
|
|
|
steps:
|
2020-09-21 12:53:53 +00:00
|
|
|
- name: Setup graphviz
|
|
|
|
uses: ts-graphviz/setup-graphviz@v1
|
|
|
|
- name: Setup python for tox
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install tox
|
|
|
|
run: python -m pip install tox
|
2020-09-21 06:49:00 +00:00
|
|
|
- name: Setup python for test ${{ matrix.py }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.py }}
|
|
|
|
- uses: actions/checkout@v2
|
2020-09-21 12:53:53 +00:00
|
|
|
- name: Pick tox environment to run
|
|
|
|
run: |
|
2020-09-22 09:17:56 +00:00
|
|
|
import platform
|
|
|
|
import sys
|
|
|
|
major, minor, impl = sys.version_info[0], sys.version_info[1], platform.python_implementation()
|
2020-09-21 12:53:53 +00:00
|
|
|
print('::set-env name=TOXENV::' + ("py" if impl == "CPython" else "pypy") + ("{}{}".format(major, minor) if impl == "CPython" else ("3" if major == 3 else "")))
|
|
|
|
shell: python
|
|
|
|
- name: Setup test suite
|
|
|
|
run: tox -vv --notest
|
2020-09-21 06:49:00 +00:00
|
|
|
- name: Run test suite
|
2020-09-21 12:53:53 +00:00
|
|
|
run: tox --skip-pkg-install
|