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