From b9a562a9b6c268d0a3f4cc261d1b28ea91b081d7 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 27 Nov 2021 21:21:31 -0800 Subject: [PATCH] .github/workflows/main.yml: Add test_cygwin --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 265be8497c..d326b6350f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,6 +40,25 @@ jobs: ${{ runner.os }}, ${{ matrix.python }} + test_cygwin: + strategy: + matrix: + distutils: + - stdlib + - local + runs-on: windows-latest + env: + SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils }} + steps: + - uses: actions/checkout@v2 + - name: Install Cygwin with Python and tox + run: | + choco install git gcc-core python38-devel python38-pip --source cygwin + C:\\tools\\cygwin\\bin\\bash -l -x -c 'python3.8 -m pip install tox' + - name: Run tests + run: | + C:\\tools\\cygwin\\bin\\bash -l -x -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && tox -- --cov-report xml' + release: needs: test if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')