24 lines
576 B
YAML
24 lines
576 B
YAML
|
name: Python Test
|
||
|
|
||
|
on: [push,pull_request]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
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
|
||
|
run: python -c "import sys; print(sys.version)"
|
||
|
- name: install tox
|
||
|
run: pip3 install tox
|
||
|
- name: tox
|
||
|
run: tox
|