2020-12-18 14:34:28 -05:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
2020-12-26 05:01:29 -05:00
|
|
|
pull_request:
|
2020-12-18 14:34:28 -05:00
|
|
|
schedule:
|
|
|
|
- cron: '0 8 * * 6'
|
|
|
|
jobs:
|
2023-09-09 20:39:45 -04:00
|
|
|
test:
|
2022-05-12 17:30:44 -04:00
|
|
|
env:
|
|
|
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
2020-12-18 14:34:28 -05:00
|
|
|
strategy:
|
2022-05-12 17:30:44 -04:00
|
|
|
fail-fast: false
|
2020-12-18 14:34:28 -05:00
|
|
|
matrix:
|
2022-12-16 14:52:33 -05:00
|
|
|
os: ["ubuntu-20.04", "macos-latest"]
|
2023-09-10 11:34:20 -04:00
|
|
|
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"]
|
2022-05-12 17:30:44 -04:00
|
|
|
include:
|
|
|
|
- os: "windows-latest"
|
|
|
|
python: "3.8"
|
|
|
|
- os: "windows-latest"
|
|
|
|
python: "3.9"
|
|
|
|
- os: "windows-latest"
|
|
|
|
python: "3.10"
|
2023-09-09 20:53:07 -04:00
|
|
|
- os: "windows-latest"
|
|
|
|
python: "3.11"
|
2023-09-10 11:34:20 -04:00
|
|
|
- os: "windows-latest"
|
|
|
|
python: "3.12"
|
2024-05-11 13:08:17 -04:00
|
|
|
exclude:
|
|
|
|
- os: "macos-latest"
|
|
|
|
python: "3.6"
|
|
|
|
- os: "macos-latest"
|
|
|
|
python: "3.7"
|
2022-05-12 17:30:44 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
2022-12-16 14:52:33 -05:00
|
|
|
name: "Test: Python ${{ matrix.python }} on ${{ matrix.os }}"
|
2020-12-18 14:34:28 -05:00
|
|
|
steps:
|
2024-05-11 13:08:17 -04:00
|
|
|
- uses: actions/checkout@v4
|
2020-12-18 14:34:28 -05:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2024-05-11 13:08:17 -04:00
|
|
|
- uses: actions/setup-python@v5
|
2020-12-18 14:34:28 -05:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python }}
|
2023-09-10 11:34:20 -04:00
|
|
|
allow-prereleases: true
|
2022-05-12 17:30:44 -04:00
|
|
|
- name: "Install dependencies"
|
|
|
|
run: |
|
2022-05-16 09:53:24 -04:00
|
|
|
python -m pip install --upgrade pip setuptools
|
|
|
|
python -m pip install tox tox-gh-actions
|
2022-05-12 17:30:44 -04:00
|
|
|
- name: "Run tests"
|
|
|
|
run: |
|
|
|
|
python -m tox
|
2022-12-17 15:05:04 -05:00
|
|
|
python -m tox -e coverage_report
|
|
|
|
- uses: codecov/codecov-action@v3
|
2022-01-30 18:48:30 -05:00
|
|
|
fmt:
|
|
|
|
name: Format
|
2022-12-11 10:49:55 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-01-30 18:48:30 -05:00
|
|
|
steps:
|
2022-12-11 10:49:55 -05:00
|
|
|
- uses: actions/checkout@v3
|
2022-01-30 18:48:30 -05:00
|
|
|
- uses: psf/black@stable
|
2022-12-17 14:10:17 -05:00
|
|
|
- uses: isort/isort-action@v1
|