tox.yml 649 B

12345678910111213141516171819202122232425262728293031
  1. name: Tests & linting with tox
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches: [main]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. max-parallel: 5
  12. matrix:
  13. python-version: [3.7, 3.8, 3.9]
  14. steps:
  15. - uses: actions/checkout@v1
  16. - name: Set up Python ${{ matrix.python-version }}
  17. uses: actions/setup-python@v2
  18. with:
  19. python-version: ${{ matrix.python-version }}
  20. - name: Install dependencies
  21. run: |
  22. python -m pip install --upgrade pip
  23. pip install tox tox-gh-actions pytest
  24. - name: Test with tox
  25. run: |
  26. tox -e py
  27. tox -e lint