Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Re-enable Cygwin CI and get most tests passing#1455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
17 commits Select commitHold shift + click to select a range
96fae83
BUG: Fix is_cygwin_git to return True on Cygwin.
DWesla67862c
CI: Add a CI job with Cygwin tests
DWesl3fc07ac
ENH: Update cygpath recodes to work with all installs
DWesld8ad56f
CI: Mark GHA repo safe for Git to use
DWeslf96cea1
CI: Specify full path to python executables.
DWesld57a513
FIX: Fix flake8 command line
DWesl5d874dd
BUG: Convert to native path before checking if absolute
DWesl21113a8
STY: Remove import of now-unused function
DWesl863c678
CI: Set temporary directory for tests.
DWeslf990852
CI: Install virtualenv for Cygwin CI.
DWesl9be148c
BUG: Use Cygwin paths for Cygwin git
DWeslaafb92a
CI: Turn of command echo for tests
DWesl54bae76
TST: Mark test_docs.Tutorials.test_submodules as xfail on Cygwin
DWesl0eda0a5
TST: Mark test_repo.TestRepo.test_submodules as xfail on Cygwin
DWesl7f3689d
TST: Mark test_submodule.TestSubmodule.test_root_module as xfail on C…
DWeslc3fd6c1
FIX: Import pytest in tests.test_docs
DWesl2996f40
FIX: Mark the correct test_submodule test as xfail on Cygwin
DWeslFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
57 changes: 57 additions & 0 deletions.github/workflows/cygwin-test.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
7 changes: 5 additions & 2 deletionsgit/repo/base.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletionsgit/repo/fun.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletionsgit/util.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletionstest/test_docs.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletionstest/test_repo.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletionstest/test_submodule.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.