-
-
Notifications
You must be signed in to change notification settings - Fork 17
55 lines (53 loc) · 1.55 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
Ubuntu:
name: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
timeout-minutes: 10
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
python:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
check_formatting: ['0']
check_typing: ['0']
runtime_only: ['0']
extra_name: ['']
include:
- python: '3.9'
check_formatting: '1'
extra_name: ', check formatting'
- python: '3.9'
check_typing: '1'
extra_name: ', type check'
- python: '3.9'
check_stubs: '1'
extra_name: ', stubtest'
- python: 'pypy-3.8'
runtime_only: '1'
extra_name: ', runtime only'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
- name: Run tests
run: ./ci.sh
env:
CHECK_FORMATTING: '${{ matrix.check_formatting }}'
CHECK_TYPING: '${{ matrix.check_typing }}'
CHECK_STUBS: '${{ matrix.check_stubs }}'
RUNTIME_ONLY: '${{ matrix.runtime_only }}'
# Should match 'name:' up above
JOB_NAME: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'