| 1 |
name: Tests |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ master ] |
| 6 |
pull_request: |
| 7 |
branches: [ master ] |
| 8 |
|
| 9 |
# Allows you to run this workflow manually from the Actions tab |
| 10 |
workflow_dispatch: |
| 11 |
|
| 12 |
jobs: |
| 13 |
run-tests: |
| 14 |
strategy: |
| 15 |
matrix: |
| 16 |
os: [ubuntu-20.04, ubuntu-18.04, macos-10.15, macos-11, windows-2019, windows-2022] |
| 17 |
python-version: [3.8, 3.9, "3.10"] |
| 18 |
|
| 19 |
runs-on: ${{ matrix.os }} |
| 20 |
steps: |
| 21 |
- name: Checkout code |
| 22 |
uses: actions/checkout@v2 |
| 23 |
with: |
| 24 |
fetch-depth: 0 |
| 25 |
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} |
| 26 |
uses: actions/setup-python@v2 |
| 27 |
with: |
| 28 |
python-version: ${{ matrix.python-version }} |
| 29 |
- name: Install dependencies |
| 30 |
run: | |
| 31 |
pip install -U -r requirements.txt |
| 32 |
- name: Run tests |
| 33 |
run: | |
| 34 |
pytest |