Mike Frysinger | b57e633 | 2020-02-15 13:49:10 -0500 | [diff] [blame] | 1 | # GitHub actions workflow. |
| 2 | # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions |
| 3 | |
| 4 | name: Test CI |
| 5 | |
| 6 | on: |
| 7 | push: |
Mike Frysinger | 6e89c96 | 2020-11-15 18:42:26 -0500 | [diff] [blame^] | 8 | branches: [main, repo-1, stable, maint] |
Mike Frysinger | b57e633 | 2020-02-15 13:49:10 -0500 | [diff] [blame] | 9 | tags: [v*] |
| 10 | |
| 11 | jobs: |
| 12 | test: |
| 13 | strategy: |
| 14 | fail-fast: false |
| 15 | matrix: |
| 16 | os: [ubuntu-latest, macos-latest, windows-latest] |
Mike Frysinger | 4b32581 | 2020-03-13 05:35:00 -0400 | [diff] [blame] | 17 | python-version: [3.6, 3.7, 3.8] |
Mike Frysinger | b57e633 | 2020-02-15 13:49:10 -0500 | [diff] [blame] | 18 | runs-on: ${{ matrix.os }} |
| 19 | |
| 20 | steps: |
| 21 | - uses: actions/checkout@v2 |
| 22 | - name: Set up Python ${{ matrix.python-version }} |
| 23 | uses: actions/setup-python@v1 |
| 24 | with: |
| 25 | python-version: ${{ matrix.python-version }} |
| 26 | - name: Install dependencies |
| 27 | run: | |
| 28 | python -m pip install --upgrade pip |
| 29 | pip install tox tox-gh-actions |
| 30 | - name: Test with tox |
| 31 | run: tox |