diff options
| author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-06-21 11:45:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-21 11:45:00 +0800 |
| commit | f0c6e1164f390081a27de952552aa83d34035f2a (patch) | |
| tree | fcd116711c75c126c2fd083bb6a8c78ced5870ef /.github/workflows | |
| parent | 6660b8463b86ea92ff56baebfcebc7c8a6e933fa (diff) | |
| parent | 2996f402f11565c3ad93aedfe070f4f5f571e72e (diff) | |
| download | gitpython-f0c6e1164f390081a27de952552aa83d34035f2a.tar.gz | |
Merge pull request #1455 from DWesl/patch-1
Re-enable Cygwin CI and get most tests passing
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/cygwin-test.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/cygwin-test.yml b/.github/workflows/cygwin-test.yml new file mode 100644 index 00000000..6fe50124 --- /dev/null +++ b/.github/workflows/cygwin-test.yml @@ -0,0 +1,57 @@ +name: test-cygwin + +on: + push: + branches: + main + pull_request: + branches: + main + +jobs: + build: + runs-on: windows-latest + env: + CHERE_INVOKING: 1 + SHELLOPTS: igncr + TMP: "/tmp" + TEMP: "/tmp" + + 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 python39-virtualenv git + - name: Tell git to trust this repo + shell: bash.exe -eo pipefail -o igncr "{0}" + run: /usr/bin/git config --global --add safe.directory $(pwd) + - name: Install dependencies and prepare tests + shell: bash.exe -eo pipefail -o igncr "{0}" + run: | + set -x + /usr/bin/python -m pip install --upgrade pip setuptools wheel + /usr/bin/python --version; /usr/bin/git --version + /usr/bin/git submodule update --init --recursive + /usr/bin/git fetch --tags + /usr/bin/python -m pip install -r requirements.txt + /usr/bin/python -m pip install -r test-requirements.txt + TRAVIS=yes ./init-tests-after-clone.sh + /usr/bin/git config --global user.email "travis@ci.com" + /usr/bin/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 + /usr/bin/python -m flake8 + - name: Test with pytest + shell: bash.exe -eo pipefail -o igncr "{0}" + run: | + /usr/bin/python -m pytest + continue-on-error: false |
