| 1 |
name: CI |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches-ignore: |
| 6 |
- "dependabot/**" |
| 7 |
pull_request: |
| 8 |
|
| 9 |
jobs: |
| 10 |
Windows: |
| 11 |
name: 'Windows (${{ matrix.python }})' |
| 12 |
runs-on: 'windows-latest' |
| 13 |
strategy: |
| 14 |
fail-fast: false |
| 15 |
matrix: |
| 16 |
python: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 17 |
steps: |
| 18 |
- name: Checkout |
| 19 |
uses: actions/checkout@v2 |
| 20 |
- name: Setup python |
| 21 |
uses: actions/setup-python@v2 |
| 22 |
with: |
| 23 |
python-version: '${{ matrix.python }}' |
| 24 |
- name: Run tests |
| 25 |
run: ./ci.sh |
| 26 |
shell: bash |
| 27 |
env: |
| 28 |
# Should match 'name:' up above |
| 29 |
JOB_NAME: 'Windows (${{ matrix.python }})' |
| 30 |
|
| 31 |
Ubuntu: |
| 32 |
name: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})' |
| 33 |
timeout-minutes: 10 |
| 34 |
runs-on: 'ubuntu-latest' |
| 35 |
strategy: |
| 36 |
fail-fast: false |
| 37 |
matrix: |
| 38 |
python: ['pypy-3.7', '3.7', 'pypy-3.8', '3.8', 'pypy-3.9', '3.9', '3.10', '3.11'] |
| 39 |
check_formatting: ['0'] |
| 40 |
check_docs: ['0'] |
| 41 |
extra_name: [''] |
| 42 |
include: |
| 43 |
- python: '3.9' |
| 44 |
check_formatting: '1' |
| 45 |
extra_name: ', check formatting' |
| 46 |
- python: '3.9' |
| 47 |
check_docs: '1' |
| 48 |
extra_name: ', check docs' |
| 49 |
steps: |
| 50 |
- name: Checkout |
| 51 |
uses: actions/checkout@v2 |
| 52 |
- name: Setup python |
| 53 |
uses: actions/setup-python@v2 |
| 54 |
if: "!endsWith(matrix.python, '-dev')" |
| 55 |
with: |
| 56 |
python-version: '${{ matrix.python }}' |
| 57 |
- name: Setup python (dev) |
| 58 |
uses: deadsnakes/[email protected] |
| 59 |
if: endsWith(matrix.python, '-dev') |
| 60 |
with: |
| 61 |
python-version: '${{ matrix.python }}' |
| 62 |
- name: Run tests |
| 63 |
run: ./ci.sh |
| 64 |
env: |
| 65 |
CHECK_FORMATTING: '${{ matrix.check_formatting }}' |
| 66 |
CHECK_DOCS: '${{ matrix.check_docs }}' |
| 67 |
# Should match 'name:' up above |
| 68 |
JOB_NAME: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})' |
| 69 |
|
| 70 |
macOS: |
| 71 |
name: 'macOS (${{ matrix.python }})' |
| 72 |
timeout-minutes: 10 |
| 73 |
runs-on: 'macos-latest' |
| 74 |
strategy: |
| 75 |
fail-fast: false |
| 76 |
matrix: |
| 77 |
python: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 78 |
steps: |
| 79 |
- name: Checkout |
| 80 |
uses: actions/checkout@v2 |
| 81 |
- name: Setup python |
| 82 |
uses: actions/setup-python@v2 |
| 83 |
with: |
| 84 |
python-version: '${{ matrix.python }}' |
| 85 |
- name: Run tests |
| 86 |
run: ./ci.sh |
| 87 |
env: |
| 88 |
# Should match 'name:' up above |
| 89 |
JOB_NAME: 'macOS (${{ matrix.python }})' |