Merge branch 'fix-parse-commands'
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python: [3.6, 3.7, 3.8]
|
python: [3.6, 3.7, 3.8]
|
||||||
os: [ubuntu-18.04, windows-latest]
|
os: [ubuntu-18.04, windows-2016]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Set up Python ${{ matrix.python }}
|
- name: Set up Python ${{ matrix.python }}
|
||||||
|
|||||||
@@ -186,9 +186,9 @@ endforeach()
|
|||||||
matches = re.finditer(
|
matches = re.finditer(
|
||||||
r'''
|
r'''
|
||||||
(?P<command>.+)\n
|
(?P<command>.+)\n
|
||||||
-+\n\n
|
-+\n+?
|
||||||
[\s\S]*?
|
[\s\S]*?
|
||||||
(?P<signature>\ (?P=command)\s*\([^)]*\))
|
(?P<signature>(?P=command)\s*\([^)]*\))
|
||||||
''', p.stdout, re.VERBOSE)
|
''', p.stdout, re.VERBOSE)
|
||||||
self._builtin_commands.clear()
|
self._builtin_commands.clear()
|
||||||
for match in matches:
|
for match in matches:
|
||||||
|
|||||||
@@ -15,8 +15,9 @@ def cmake_build(shared_datadir):
|
|||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
logging.error(os.environ)
|
import pprint
|
||||||
logging.error(p.stdout)
|
logging.error('env:\n' + pprint.pformat(os.environ))
|
||||||
logging.error(p.stderr)
|
logging.error('stdout:\n' + p.stdout)
|
||||||
|
logging.error('stderr:\n' + p.stderr)
|
||||||
raise RuntimeError("CMake failed")
|
raise RuntimeError("CMake failed")
|
||||||
yield build
|
yield build
|
||||||
|
|||||||
4
tox.ini
4
tox.ini
@@ -12,15 +12,13 @@ python =
|
|||||||
[testenv]
|
[testenv]
|
||||||
whitelist_externals = poetry
|
whitelist_externals = poetry
|
||||||
skip_install = true
|
skip_install = true
|
||||||
passenv = INCLUDE LIB LIBPATH
|
passenv = INCLUDE LIB LIBPATH Platform VCTools* VSCMD_* WindowsSDK*
|
||||||
commands_pre =
|
commands_pre =
|
||||||
poetry install
|
poetry install
|
||||||
commands =
|
commands =
|
||||||
poetry run pytest -sv tests
|
poetry run pytest -sv tests
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
whitelist_externals = poetry
|
|
||||||
skip_install = true
|
|
||||||
commands =
|
commands =
|
||||||
poetry run isort -c -rc src tests
|
poetry run isort -c -rc src tests
|
||||||
poetry run yapf -d -r src tests
|
poetry run yapf -d -r src tests
|
||||||
|
|||||||
Reference in New Issue
Block a user