2020-04-23 15:05:05 +00:00
|
|
|
---
|
|
|
|
name: Test Suite
|
|
|
|
|
|
|
|
on:
|
2020-09-06 10:08:07 +00:00
|
|
|
push:
|
|
|
|
branches: ["master"]
|
2020-04-23 15:05:05 +00:00
|
|
|
pull_request:
|
|
|
|
branches: ["master"]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
name: "Python ${{ matrix.python-version }}"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-04-22 05:47:28 +00:00
|
|
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
2020-04-23 15:05:05 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: "actions/checkout@v2"
|
2020-10-07 19:58:59 +00:00
|
|
|
- uses: "actions/setup-python@v2"
|
2020-04-23 15:05:05 +00:00
|
|
|
with:
|
|
|
|
python-version: "${{ matrix.python-version }}"
|
|
|
|
- name: "Install dependencies"
|
|
|
|
run: "scripts/install"
|
2020-09-06 10:08:07 +00:00
|
|
|
- name: "Run linting checks"
|
|
|
|
run: "scripts/check"
|
|
|
|
- name: "Build package & docs"
|
|
|
|
run: "scripts/build"
|
2020-04-23 15:05:05 +00:00
|
|
|
- name: "Run tests"
|
|
|
|
run: "scripts/test"
|
2020-09-08 06:54:55 +00:00
|
|
|
- name: "Enforce coverage"
|
|
|
|
run: "scripts/coverage"
|