core.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: Core Tests
  2. on: [push, pull_request]
  3. jobs:
  4. tests:
  5. name: Core Tests
  6. if: "!contains(github.event.head_commit.message, 'ci skip')"
  7. runs-on: ${{ matrix.os }}
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. os: [ubuntu-latest]
  12. # CPython 3.9 is in quick-test
  13. python-version: ['3.6', '3.7', '3.10', 3.11-dev, pypy-3.6, pypy-3.7, pypy-3.8]
  14. run-tests-ext: [sh]
  15. include:
  16. # atleast one of each CPython/PyPy tests must be in windows
  17. - os: windows-latest
  18. python-version: '3.8'
  19. run-tests-ext: bat
  20. - os: windows-latest
  21. python-version: pypy-3.9
  22. run-tests-ext: bat
  23. steps:
  24. - uses: actions/checkout@v2
  25. - name: Set up Python ${{ matrix.python-version }}
  26. uses: actions/setup-python@v2
  27. with:
  28. python-version: ${{ matrix.python-version }}
  29. - name: Install pytest
  30. run: pip install pytest
  31. - name: Run tests
  32. continue-on-error: False
  33. run: ./devscripts/run_tests.${{ matrix.run-tests-ext }} core
  34. # Linter is in quick-test