11name : Tests
22
33on :
4+ workflow_dispatch :
45 push :
56 branches : [master, 'release*']
67 tags : ['*']
1415 - CREDITS
1516 - LICENSE
1617
18+ concurrency :
19+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+ cancel-in-progress : true
21+
1722jobs :
1823 main :
1924 runs-on : ${{ matrix.os }}
@@ -31,27 +36,27 @@ jobs:
3136 arch : x64
3237 os : windows-latest
3338 toxenv : py37
34- - name : Test suite with py37 -ubuntu
35- python : ' 3.7 '
39+ - name : Test suite with py38 -ubuntu
40+ python : ' 3.8 '
3641 arch : x64
3742 os : ubuntu-latest
3843 toxenv : py
3944 tox_extra_args : " -n 2"
40- - name : Test suite with py38 -ubuntu
41- python : ' 3.8 '
45+ - name : Test suite with py39 -ubuntu
46+ python : ' 3.9 '
4247 arch : x64
4348 os : ubuntu-latest
4449 toxenv : py
4550 tox_extra_args : " -n 2"
46- - name : Test suite with py36 -ubuntu, mypyc-compiled
47- python : ' 3.6 '
51+ - name : Test suite with py37 -ubuntu, mypyc-compiled
52+ python : ' 3.7 '
4853 arch : x64
4954 os : ubuntu-latest
5055 toxenv : py
5156 tox_extra_args : " -n 2"
5257 test_mypyc : true
53- - name : Test suite with py39 -ubuntu, mypyc-compiled
54- python : ' 3.9 '
58+ - name : Test suite with py310 -ubuntu, mypyc-compiled
59+ python : ' 3.10 '
5560 arch : x64
5661 os : ubuntu-latest
5762 toxenv : py
@@ -63,17 +68,17 @@ jobs:
6368 os : ubuntu-latest
6469 toxenv : py
6570 tox_extra_args : " -n 2"
66- - name : mypyc runtime tests with py36 -macos
67- python : ' 3.6 '
71+ - name : mypyc runtime tests with py37 -macos
72+ python : ' 3.7 '
6873 arch : x64
6974 os : macos-latest
7075 toxenv : py
7176 tox_extra_args : " -n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
72- - name : mypyc runtime tests with py36 -debug-build-ubuntu
73- python : ' 3.6.8 '
77+ - name : mypyc runtime tests with py37 -debug-build-ubuntu
78+ python : ' 3.7.13 '
7479 arch : x64
7580 os : ubuntu-latest
76- toxenv : py36
81+ toxenv : py
7782 tox_extra_args : " -n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
7883 debug_build : true
7984 - name : Type check our own code (py37-ubuntu)
@@ -86,16 +91,18 @@ jobs:
8691 arch : x64
8792 os : windows-latest
8893 toxenv : type
89- - name : Code style with flake8
94+ - name : Formatting with Black + isort and code style with flake8
9095 python : ' 3.7'
9196 arch : x64
9297 os : ubuntu-latest
9398 toxenv : lint
9499
95100 name : ${{ matrix.name }}
101+ env :
102+ TOX_SKIP_MISSING_INTERPRETERS : False
96103 steps :
97- - uses : actions/checkout@v2
98- - uses : actions/setup-python@v2
104+ - uses : actions/checkout@v3
105+ - uses : actions/setup-python@v4
99106 with :
100107 python-version : ${{ matrix.python }}
101108 architecture : ${{ matrix.arch }}
@@ -108,7 +115,7 @@ jobs:
108115 ./misc/build-debug-python.sh $PYTHONVERSION $PYTHONDIR $VENV
109116 source $VENV/bin/activate
110117 - name : Install tox
111- run : pip install --upgrade 'setuptools!=50' 'virtualenv>=20.6.0' tox==3.24.5
118+ run : pip install --upgrade 'setuptools!=50' tox==3.24.5
112119 - name : Compiled with mypyc
113120 if : ${{ matrix.test_mypyc }}
114121 run : |
@@ -119,23 +126,20 @@ jobs:
119126 - name : Test
120127 run : tox -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
121128
122- # TODO: re-enable when `typed-ast` will be fixed for `python==3.11`
123- # python-nightly:
124- # runs-on: ubuntu-latest
125- # name: Test suite with Python nightly
126- # steps:
127- # - uses: actions/checkout@v2
128- # - uses: actions/setup-python@v2
129- # with:
130- # python-version: '3.11-dev'
131- # - name: Install tox
132- # run: |
133- # pip install -U pip==21.2.3 setuptools
134- # pip install --upgrade 'setuptools!=50' virtualenv==20.4.7 tox==3.20.1
135- # - name: Setup tox environment
136- # run: tox -e py --notest
137- # - name: Test
138- # run: tox -e py --skip-pkg-install -- "-n 2"
139- # continue-on-error: true
140- # - name: Mark as a success
141- # run: exit 0
129+ python-nightly :
130+ runs-on : ubuntu-latest
131+ name : Test suite with Python nightly
132+ steps :
133+ - uses : actions/checkout@v3
134+ - uses : actions/setup-python@v4
135+ with :
136+ python-version : ' 3.11-dev'
137+ - name : Install tox
138+ run : pip install --upgrade 'setuptools!=50' tox==3.24.5
139+ - name : Setup tox environment
140+ run : tox -e py --notest
141+ - name : Test
142+ run : tox -e py --skip-pkg-install -- "-n 2"
143+ continue-on-error : true
144+ - name : Mark as a success
145+ run : exit 0
0 commit comments