From 16002760d8a2ddbd9577e1fbc51d883f3c033e00 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 16 Dec 2019 07:54:01 +0100 Subject: [PATCH 1/3] test: GitHub Actions add Windows to the testing @joaocgreis This might be of interest to you. --- .github/workflows/Python_tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/Python_tests.yml b/.github/workflows/Python_tests.yml index 235127f21a..792a1d3626 100644 --- a/.github/workflows/Python_tests.yml +++ b/.github/workflows/Python_tests.yml @@ -1,4 +1,3 @@ -# TODO: Line 14, enable os: windows-latest # TODO: Line 15, enable python-version: 3.5 # TODO: Line 36, enable pytest --doctest-modules @@ -11,7 +10,7 @@ jobs: fail-fast: false max-parallel: 15 matrix: - os: [macos-latest, ubuntu-latest] # , windows-latest] + os: [macos-latest, ubuntu-latest, windows-latest] python-version: [2.7, 3.6, 3.7, 3.8] # 3.5, steps: - uses: actions/checkout@v1 From 293216bc03f425225b5e38c35b5676940186336a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 29 Dec 2019 07:57:19 +0100 Subject: [PATCH 2/3] GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" --- .github/workflows/Python_tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Python_tests.yml b/.github/workflows/Python_tests.yml index 792a1d3626..ad4268976e 100644 --- a/.github/workflows/Python_tests.yml +++ b/.github/workflows/Python_tests.yml @@ -29,7 +29,11 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest + - name: Test with pytest (Linux and macOS) + if: matrix.os != 'windows-latest' run: pytest + - name: Test with pytest (Windows) + if: matrix.os == 'windows-latest' + run: GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest # - name: Run doctests with pytest # run: pytest --doctest-modules From 91957aaf227570a0183e983df00d9a121eaec2d4 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 29 Dec 2019 08:18:10 +0100 Subject: [PATCH 3/3] shell: bash --- .github/workflows/Python_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Python_tests.yml b/.github/workflows/Python_tests.yml index ad4268976e..dba9d10933 100644 --- a/.github/workflows/Python_tests.yml +++ b/.github/workflows/Python_tests.yml @@ -34,6 +34,7 @@ jobs: run: pytest - name: Test with pytest (Windows) if: matrix.os == 'windows-latest' + shell: bash run: GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest # - name: Run doctests with pytest # run: pytest --doctest-modules