]>
Commit | Line | Data |
---|---|---|
3bcaa37b | 1 | name: Download Tests |
298f597b | 2 | on: [push, pull_request] |
c789fb77 A |
3 | permissions: |
4 | contents: read | |
5 | ||
c76eb41b | 6 | jobs: |
258d88f3 | 7 | quick: |
8 | name: Quick Download Tests | |
36382262 | 9 | if: "contains(github.event.head_commit.message, 'ci run dl')" |
258d88f3 | 10 | runs-on: ubuntu-latest |
11 | steps: | |
c4b6c5c7 | 12 | - uses: actions/checkout@v3 |
258d88f3 | 13 | - name: Set up Python |
c4b6c5c7 | 14 | uses: actions/setup-python@v4 |
258d88f3 | 15 | with: |
16 | python-version: 3.9 | |
17 | - name: Install test requirements | |
18 | run: pip install pytest | |
19 | - name: Run tests | |
20 | continue-on-error: true | |
21 | run: ./devscripts/run_tests.sh download | |
22 | ||
23 | full: | |
24 | name: Full Download Tests | |
25 | if: "contains(github.event.head_commit.message, 'ci run dl all')" | |
c76eb41b | 26 | runs-on: ${{ matrix.os }} |
27 | strategy: | |
28 | fail-fast: true | |
29 | matrix: | |
7a96d0b3 | 30 | os: [ubuntu-latest] |
377e85a1 | 31 | python-version: ['3.7', '3.10', '3.12', pypy-3.7, pypy-3.8, pypy-3.10] |
c76eb41b | 32 | run-tests-ext: [sh] |
33 | include: | |
2cb19820 | 34 | # atleast one of each CPython/PyPy tests must be in windows |
c76eb41b | 35 | - os: windows-latest |
2cb19820 | 36 | python-version: '3.8' |
37 | run-tests-ext: bat | |
38 | - os: windows-latest | |
39 | python-version: pypy-3.9 | |
c76eb41b | 40 | run-tests-ext: bat |
c76eb41b | 41 | steps: |
c4b6c5c7 | 42 | - uses: actions/checkout@v3 |
c76eb41b | 43 | - name: Set up Python ${{ matrix.python-version }} |
c4b6c5c7 | 44 | uses: actions/setup-python@v4 |
c76eb41b | 45 | with: |
46 | python-version: ${{ matrix.python-version }} | |
060ac762 | 47 | - name: Install pytest |
48 | run: pip install pytest | |
c76eb41b | 49 | - name: Run tests |
14b17a55 | 50 | continue-on-error: true |
060ac762 | 51 | run: ./devscripts/run_tests.${{ matrix.run-tests-ext }} download |