Fix windows build

This commit is contained in:
Regen
2019-12-23 01:47:07 +09:00
parent 06f7a4669d
commit e73b0bab0f
3 changed files with 6 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
python: [3.6, 3.7, 3.8]
os: [ubuntu-18.04, windows-latest]
os: [ubuntu-18.04, windows-2016]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python }}

View File

@@ -15,8 +15,9 @@ def cmake_build(shared_datadir):
if p.returncode != 0:
import logging
import os
logging.error(os.environ)
logging.error(p.stdout)
logging.error(p.stderr)
import pprint
logging.error('env:\n' + pprint.pformat(os.environ))
logging.error('stdout:\n' + p.stdout)
logging.error('stderr:\n' + p.stderr)
raise RuntimeError("CMake failed")
yield build

View File

@@ -12,15 +12,13 @@ python =
[testenv]
whitelist_externals = poetry
skip_install = true
passenv = INCLUDE LIB LIBPATH
passenv = INCLUDE LIB LIBPATH Platform VCTools* VSCMD_* WindowsSDK*
commands_pre =
poetry install
commands =
poetry run pytest -sv tests
[testenv:lint]
whitelist_externals = poetry
skip_install = true
commands =
poetry run isort -c -rc src tests
poetry run yapf -d -r src tests