download.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: Download Tests
  2. on: [push, pull_request]
  3. permissions:
  4. contents: read
  5. jobs:
  6. quick:
  7. name: Quick Download Tests
  8. if: "contains(github.event.head_commit.message, 'ci run dl')"
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v4
  12. - name: Set up Python
  13. uses: actions/setup-python@v5
  14. with:
  15. python-version: 3.9
  16. - name: Install test requirements
  17. run: python3 ./devscripts/install_deps.py --include dev
  18. - name: Run tests
  19. continue-on-error: true
  20. run: python3 ./devscripts/run_tests.py download
  21. full:
  22. name: Full Download Tests
  23. if: "contains(github.event.head_commit.message, 'ci run dl all')"
  24. runs-on: ${{ matrix.os }}
  25. strategy:
  26. fail-fast: true
  27. matrix:
  28. os: [ubuntu-latest]
  29. python-version: ['3.10', '3.11', '3.12', '3.13', pypy-3.10]
  30. include:
  31. # atleast one of each CPython/PyPy tests must be in windows
  32. - os: windows-latest
  33. python-version: '3.9'
  34. - os: windows-latest
  35. python-version: pypy-3.10
  36. steps:
  37. - uses: actions/checkout@v4
  38. - name: Set up Python ${{ matrix.python-version }}
  39. uses: actions/setup-python@v5
  40. with:
  41. python-version: ${{ matrix.python-version }}
  42. - name: Install test requirements
  43. run: python3 ./devscripts/install_deps.py --include dev
  44. - name: Run tests
  45. continue-on-error: true
  46. run: python3 ./devscripts/run_tests.py download