2020-02-15 18:49:10 +00:00
|
|
|
# GitHub actions workflow.
|
|
|
|
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
|
|
|
|
|
|
|
|
name: Test CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-15 23:42:26 +00:00
|
|
|
branches: [main, repo-1, stable, maint]
|
2020-02-15 18:49:10 +00:00
|
|
|
tags: [v*]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-10-11 08:42:21 +00:00
|
|
|
# ubuntu-20.04 is the last version that supports python 3.6
|
|
|
|
os: [ubuntu-20.04, macos-latest, windows-latest]
|
2023-10-17 09:48:06 +00:00
|
|
|
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
|
2020-02-15 18:49:10 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
2022-11-25 12:45:51 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-02-15 18:49:10 +00:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
2022-11-25 12:45:51 +00:00
|
|
|
uses: actions/setup-python@v4
|
2020-02-15 18:49:10 +00:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2022-11-25 12:45:51 +00:00
|
|
|
python -m pip install tox tox-gh-actions
|
2020-02-15 18:49:10 +00:00
|
|
|
- name: Test with tox
|
|
|
|
run: tox
|