2020-01-23 21:25:42 +08:00
|
|
|
name: Python Test
|
|
|
|
|
2020-02-06 04:16:30 +08:00
|
|
|
on: [push, pull_request]
|
2020-01-23 21:25:42 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-02-06 04:16:30 +08:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-01-23 21:25:42 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
python-version: [3.6, 3.7, 3.8]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Display Python version
|
2020-02-06 04:16:30 +08:00
|
|
|
run: python -c "import sys; print(sys.version); print(sys.platform)"
|
2020-01-23 21:25:42 +08:00
|
|
|
- name: install tox
|
|
|
|
run: pip3 install tox
|
|
|
|
- name: tox
|
|
|
|
run: tox
|