Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/mypy_primer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'mypy/stubgen.py'
- 'mypy/stubgenc.py'
- 'mypy/test/**'
- '**'

jobs:
mypy_primer:
Expand Down
130 changes: 65 additions & 65 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,76 +21,76 @@ jobs:
fail-fast: false
matrix:
include:
- name: Test suite with py37-windows-32
python: '3.7'
arch: x86
os: windows-latest
toxenv: py37
# - name: Test suite with py37-windows-32
# python: '3.7'
# arch: x86
# os: windows-latest
# toxenv: py37
- name: Test suite with py37-windows-64
python: '3.7'
arch: x64
os: windows-latest
toxenv: py37
- name: Test suite with py37-ubuntu
python: '3.7'
arch: x64
os: ubuntu-latest
toxenv: py
tox_extra_args: "-n 2"
- name: Test suite with py38-ubuntu
python: '3.8'
arch: x64
os: ubuntu-latest
toxenv: py
tox_extra_args: "-n 2"
- name: Test suite with py36-ubuntu, mypyc-compiled
python: '3.6'
arch: x64
os: ubuntu-latest
toxenv: py
tox_extra_args: "-n 2"
test_mypyc: true
- name: Test suite with py39-ubuntu, mypyc-compiled
python: '3.9'
arch: x64
os: ubuntu-latest
toxenv: py
tox_extra_args: "-n 2"
test_mypyc: true
- name: Test suite with py310-ubuntu
python: '3.10'
arch: x64
os: ubuntu-latest
toxenv: py
tox_extra_args: "-n 2"
- name: mypyc runtime tests with py36-macos
python: '3.6'
arch: x64
os: macos-latest
toxenv: py
tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
- name: mypyc runtime tests with py36-debug-build-ubuntu
python: '3.6.8'
arch: x64
os: ubuntu-latest
toxenv: py36
tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
debug_build: true
- name: Type check our own code (py37-ubuntu)
python: '3.7'
arch: x64
os: ubuntu-latest
toxenv: type
- name: Type check our own code (py37-windows-64)
python: '3.7'
arch: x64
os: windows-latest
toxenv: type
- name: Code style with flake8
python: '3.7'
arch: x64
os: ubuntu-latest
toxenv: lint
# - name: Test suite with py37-ubuntu
# python: '3.7'
# arch: x64
# os: ubuntu-latest
# toxenv: py
# tox_extra_args: "-n 2"
# - name: Test suite with py38-ubuntu
# python: '3.8'
# arch: x64
# os: ubuntu-latest
# toxenv: py
# tox_extra_args: "-n 2"
# - name: Test suite with py36-ubuntu, mypyc-compiled
# python: '3.6'
# arch: x64
# os: ubuntu-latest
# toxenv: py
# tox_extra_args: "-n 2"
# test_mypyc: true
# - name: Test suite with py39-ubuntu, mypyc-compiled
# python: '3.9'
# arch: x64
# os: ubuntu-latest
# toxenv: py
# tox_extra_args: "-n 2"
# test_mypyc: true
# - name: Test suite with py310-ubuntu
# python: '3.10'
# arch: x64
# os: ubuntu-latest
# toxenv: py
# tox_extra_args: "-n 2"
# - name: mypyc runtime tests with py36-macos
# python: '3.6'
# arch: x64
# os: macos-latest
# toxenv: py
# tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
# - name: mypyc runtime tests with py36-debug-build-ubuntu
# python: '3.6.8'
# arch: x64
# os: ubuntu-latest
# toxenv: py36
# tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
# debug_build: true
# - name: Type check our own code (py37-ubuntu)
# python: '3.7'
# arch: x64
# os: ubuntu-latest
# toxenv: type
# - name: Type check our own code (py37-windows-64)
# python: '3.7'
# arch: x64
# os: windows-latest
# toxenv: type
# - name: Code style with flake8
# python: '3.7'
# arch: x64
# os: ubuntu-latest
# toxenv: lint

name: ${{ matrix.name }}
steps:
Expand Down
5 changes: 4 additions & 1 deletion mypyc/test/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) ->

# Assert that an output file got created
suffix = 'pyd' if sys.platform == 'win32' else 'so'
assert glob.glob('native.*.{}'.format(suffix))
print('[cwd] ', os.getcwd())
print('[files] ', os.listdir('.'))
print('[glob] ', glob.glob('**/*native*', recursive=True))
assert glob.glob('native.*.{}'.format(suffix)) or glob.glob('native.{}'.format(suffix))

driver_path = 'driver.py'
if not os.path.isfile(driver_path):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description = run the test driver with {basepython}
setenv = cov: COVERAGE_FILE={toxworkdir}/.coverage.{envname}
passenv = PYTEST_XDIST_WORKER_COUNT PROGRAMDATA PROGRAMFILES(X86)
deps = -rtest-requirements.txt
commands = python -m pytest {posargs}
commands = python -m pytest {posargs} -k testRunDataclass
cov: python -m pytest {posargs: --cov mypy --cov-config setup.cfg}


Expand Down