@@ -20,123 +20,6 @@ concurrency:
20
20
cancel-in-progress : true
21
21
22
22
jobs :
23
- main :
24
- runs-on : ${{ matrix.os }}
25
- strategy :
26
- fail-fast : false
27
- matrix :
28
- include :
29
- - name : Test suite with py37-windows-64
30
- python : ' 3.7'
31
- arch : x64
32
- os : windows-latest
33
- toxenv : py37
34
- - name : Test suite with py38-ubuntu
35
- python : ' 3.8'
36
- arch : x64
37
- os : ubuntu-latest
38
- toxenv : py
39
- tox_extra_args : " -n 2"
40
- - name : Test suite with py39-ubuntu
41
- python : ' 3.9'
42
- arch : x64
43
- os : ubuntu-latest
44
- toxenv : py
45
- tox_extra_args : " -n 2"
46
- - name : Test suite with py37-ubuntu, mypyc-compiled
47
- python : ' 3.7'
48
- arch : x64
49
- os : ubuntu-latest
50
- toxenv : py
51
- tox_extra_args : " -n 2"
52
- test_mypyc : true
53
- - name : Test suite with py310-ubuntu, mypyc-compiled
54
- python : ' 3.10'
55
- arch : x64
56
- os : ubuntu-latest
57
- toxenv : py
58
- tox_extra_args : " -n 2"
59
- test_mypyc : true
60
- - name : Test suite with py310-ubuntu
61
- python : ' 3.10'
62
- arch : x64
63
- os : ubuntu-latest
64
- toxenv : py
65
- tox_extra_args : " -n 2"
66
- - name : Test suite with py311-ubuntu, mypyc-compiled
67
- python : ' 3.11'
68
- arch : x64
69
- os : ubuntu-latest
70
- toxenv : py
71
- tox_extra_args : " -n 2"
72
- test_mypyc : true
73
- - name : mypyc runtime tests with py37-macos
74
- python : ' 3.7'
75
- arch : x64
76
- os : macos-latest
77
- toxenv : py
78
- tox_extra_args : " -n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
79
- - name : mypyc runtime tests with py37-debug-build-ubuntu
80
- python : ' 3.7.13'
81
- arch : x64
82
- os : ubuntu-latest
83
- toxenv : py
84
- tox_extra_args : " -n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
85
- debug_build : true
86
- - name : Type check our own code (py37-ubuntu)
87
- python : ' 3.7'
88
- arch : x64
89
- os : ubuntu-latest
90
- toxenv : type
91
- - name : Type check our own code (py37-windows-64)
92
- python : ' 3.7'
93
- arch : x64
94
- os : windows-latest
95
- toxenv : type
96
- - name : Formatting with Black + isort and code style with flake8
97
- python : ' 3.7'
98
- arch : x64
99
- os : ubuntu-latest
100
- toxenv : lint
101
-
102
- name : ${{ matrix.name }}
103
- env :
104
- TOX_SKIP_MISSING_INTERPRETERS : False
105
- # Rich (pip)
106
- FORCE_COLOR : 1
107
- # Tox
108
- PY_COLORS : 1
109
- # Mypy (see https://github.com/python/mypy/issues/7771)
110
- TERM : xterm-color
111
- MYPY_FORCE_COLOR : 1
112
- MYPY_FORCE_TERMINAL_WIDTH : 200
113
- # Pytest
114
- PYTEST_ADDOPTS : --color=yes
115
- steps :
116
- - uses : actions/checkout@v3
117
- - uses : actions/setup-python@v4
118
- with :
119
- python-version : ${{ matrix.python }}
120
- architecture : ${{ matrix.arch }}
121
- - name : Debug build
122
- if : ${{ matrix.debug_build }}
123
- run : |
124
- PYTHONVERSION=${{ matrix.python }}
125
- PYTHONDIR=~/python-debug/python-$PYTHONVERSION
126
- VENV=$PYTHONDIR/env
127
- ./misc/build-debug-python.sh $PYTHONVERSION $PYTHONDIR $VENV
128
- source $VENV/bin/activate
129
- - name : Install tox
130
- run : pip install --upgrade 'setuptools!=50' tox==3.24.5
131
- - name : Compiled with mypyc
132
- if : ${{ matrix.test_mypyc }}
133
- run : |
134
- pip install -r test-requirements.txt
135
- CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
136
- - name : Setup tox environment
137
- run : tox -e ${{ matrix.toxenv }} --notest
138
- - name : Test
139
- run : tox -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
140
23
141
24
python-nightly :
142
25
runs-on : ubuntu-latest
0 commit comments