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:
|
2020-02-06 04:31:35 +08:00
|
|
|
fail-fast: false
|
2020-01-23 21:25:42 +08:00
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2022-08-30 00:49:29 +08:00
|
|
|
python-version: [3.8, 3.9, '3.10']
|
2020-01-23 21:25:42 +08:00
|
|
|
steps:
|
2024-05-29 03:21:58 +08:00
|
|
|
- uses: actions/checkout@v4
|
2020-01-23 21:25:42 +08:00
|
|
|
- name: Set up Python
|
2024-05-29 03:21:58 +08:00
|
|
|
uses: actions/setup-python@v5
|
2020-01-23 21:25:42 +08:00
|
|
|
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
|