test.yml 919 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Test
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. name: Python ${{ matrix.python }}
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. python: [3.6, 3.7, 3.8, 3.9]
  10. fail-fast: false
  11. steps:
  12. - name: Checkout source
  13. uses: actions/checkout@v2
  14. - name: Install Python ${{ matrix.python }}
  15. uses: actions/setup-python@v2
  16. with:
  17. python-version: ${{ matrix.python }}
  18. - name: Install pip dependencies
  19. run: pip install -U pip tox virtualenv
  20. - name: Run tox
  21. run: tox -e py
  22. check_for_differences:
  23. name: Check for upstream differences
  24. runs-on: ubuntu-latest
  25. steps:
  26. - name: Checkout source
  27. uses: actions/checkout@v2
  28. - name: Install Python
  29. uses: actions/setup-python@v2
  30. - name: Check for upstream differences
  31. run: bin/check_for_differences
  32. env:
  33. TEST_ONLY: true