29 lines
688 B
YAML
29 lines
688 B
YAML
name: Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
CI:
|
|
name: Python ${{ matrix.python-version }}
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
fail-fast: false
|
|
max-parallel: 8
|
|
matrix:
|
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install build dependencies
|
|
run: pip install build wheel
|
|
- name: Install package
|
|
run: pip install .[tests]
|
|
- name: Test
|
|
run: make test
|
|
- uses: isort/isort-action@v1.0.0
|
|
- uses: psf/black@stable
|