summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDWesl <22566757+DWesl@users.noreply.github.com>2022-06-10 18:07:08 -0400
committerGitHub <noreply@github.com>2022-06-10 18:07:08 -0400
commita67862c6d9e6835382ebbb255ad3a121c4cdc6a7 (patch)
tree0fb379d6d095060f16d36f89188423ffa68284dd
parent96fae83e36c67f90d6c3da64a936a06a0966e981 (diff)
downloadgitpython-a67862c6d9e6835382ebbb255ad3a121c4cdc6a7.tar.gz
CI: Add a CI job with Cygwin tests
I think this got deleted because the tests were failing, so let's see what happens!
-rw-r--r--.github/workflows/cygwin-test.yml53
1 files changed, 53 insertions, 0 deletions
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