diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f6d0deb..b9f711cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,3 +17,16 @@ linux: - curl -sSL https://get.docker.com/ | sh - python -m pip install -e ".[dev]" pytest-custom-exit-code - python ./bin/run_tests.py + +windows: + image: mcr.microsoft.com/windows/servercore:1809 + variables: + PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code + before_script: + - choco install python -y --version 3.8.6 + script: + - py -m cibuildwheel --output-dir wheelhouse --platform windows + - py -m pip install -e ".[dev]" pytest-custom-exit-code + - py bin\run_tests.py + tags: + - windows diff --git a/examples/gitlab-minimal.yml b/examples/gitlab-minimal.yml index 3a1ed6c6..f5883f61 100644 --- a/examples/gitlab-minimal.yml +++ b/examples/gitlab-minimal.yml @@ -19,6 +19,7 @@ linux: - wheelhouse/ windows: + image: mcr.microsoft.com/windows/servercore:1809 before_script: - choco install python -y --version 3.8.6 - choco install git.install -y @@ -28,6 +29,5 @@ windows: artifacts: paths: - wheelhouse/ - image: mcr.microsoft.com/windows/servercore:1809 tags: - windows