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:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2021-04-14 23:32:40 +00:00
|
|
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
2020-02-15 18:49:10 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install tox tox-gh-actions
|
|
|
|
- name: Test with tox
|
|
|
|
run: tox
|