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: 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 }}

View File

@@ -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

View File

@@ -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