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/')