From a67862c6d9e6835382ebbb255ad3a121c4cdc6a7 Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:07:08 -0400 Subject: CI: Add a CI job with Cygwin tests I think this got deleted because the tests were failing, so let's see what happens! --- .github/workflows/cygwin-test.yml | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/cygwin-test.yml (limited to '.github/workflows') diff --git a/.github/workflows/cygwin-test.yml b/.github/workflows/cygwin-test.yml new file mode 100644 index 00000000..f38f2bd6 --- /dev/null +++ b/.github/workflows/cygwin-test.yml @@ -0,0 +1,53 @@ +name: test-cygwin + +on: + push: + branches: + main + pull_request: + branches: + main + +jobs: + build: + runs-on: windows-latest + env: + CHERE_INVOKING: 1 + SHELLOPTS: igncr + + steps: + - name: Force LF line endings + run: git config --global core.autocrlf input + - uses: actions/checkout@v3 + with: + fetch-depth: 9999 + - uses: cygwin/cygwin-install-action@v2 + with: + packages: python39 python39-pip git + - name: Install dependencies and prepare tests + shell: bash.exe -eo pipefail -o igncr "{0}" + run: | + set -x + python -m pip install --upgrade pip setuptools wheel + python --version; git --version + git submodule update --init --recursive + git fetch --tags + pip install -r requirements.txt + pip install -r test-requirements.txt + TRAVIS=yes ./init-tests-after-clone.sh + git config --global user.email "travis@ci.com" + git config --global user.name "Travis Runner" + # If we rewrite the user's config by accident, we will mess it up + # and cause subsequent tests to fail + cat test/fixtures/.gitconfig >> ~/.gitconfig + - name: Lint with flake8 + shell: bash.exe -eo pipefail -o igncr "{0}" + run: | + set -x + flake8 + - name: Test with pytest + shell: bash.exe -eo pipefail -o igncr "{0}" + run: | + set -x + pytest + continue-on-error: false -- cgit v1.2.1