← 返回首页
Merge pull request #2007 from EliahKagan/cygwin-py39-venv · gitpython-developers/GitPython@fe7533e · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit fe7533e

Browse files
authored
Merge pull request #2007 from EliahKagan/cygwin-py39-venv
Work around Cygwin CI failure #2004, except for `test_installation`
2 parents 470318f + d597fc9 commit fe7533e

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎.github/workflows/cygwin-test.yml‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
defaults:
1717
run:
18-
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr "{0}"
18+
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr "{0}"
1919

2020
steps:
2121
- name: Force LF line endings
@@ -27,10 +27,11 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929

30-
- name: Set up Cygwin
31-
uses: egor-tensin/setup-cygwin@v4
30+
- name: Install Cygwin
31+
uses: cygwin/cygwin-install-action@v5
3232
with:
33-
packages: python39 python39-pip python39-virtualenv git
33+
packages: python39 python39-pip python39-virtualenv git wget
34+
add-to-path: false # No need to change $PATH outside the Cygwin environment.
3435

3536
- name: Arrange for verbose output
3637
run: |
@@ -57,9 +58,13 @@ jobs:
5758
5859
- name: Set up virtualenv
5960
run: |
60-
python -m venv .venv
61+
python3.9 -m venv --without-pip .venv
6162
echo 'BASH_ENV=.venv/bin/activate' >>"$GITHUB_ENV"
6263
64+
- name: Bootstrap pip in virtualenv
65+
run: |
66+
wget -qO- https://bootstrap.pypa.io/get-pip.py | python
67+
6368
- name: Update PyPA packages
6469
run: |
6570
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.