25 lines
624 B
YAML
25 lines
624 B
YAML
name: Python Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
python-version: [3.7, 3.8, 3.9]
|
|
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); print(sys.platform)"
|
|
- name: install tox
|
|
run: pip3 install tox
|
|
- name: tox
|
|
run: tox
|