test-ci.yml 802 B

12345678910111213141516171819202122232425262728293031
  1. # GitHub actions workflow.
  2. # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
  3. name: Test CI
  4. on:
  5. push:
  6. branches: [master, repo-1, stable, maint]
  7. tags: [v*]
  8. jobs:
  9. test:
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. os: [ubuntu-latest, macos-latest, windows-latest]
  14. python-version: [2.7, 3.6, 3.7, 3.8]
  15. runs-on: ${{ matrix.os }}
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Set up Python ${{ matrix.python-version }}
  19. uses: actions/setup-python@v1
  20. with:
  21. python-version: ${{ matrix.python-version }}
  22. - name: Install dependencies
  23. run: |
  24. python -m pip install --upgrade pip
  25. pip install tox tox-gh-actions
  26. - name: Test with tox
  27. run: tox