Skip to content

Commit

Permalink
Merge pull request #2007 from EliahKagan/cygwin-py39-venv
Browse files Browse the repository at this point in the history
Work around Cygwin CI failure #2004, except for `test_installation`
  • Loading branch information
Byron authored Feb 25, 2025
2 parents 470318f + d597fc9 commit fe7533e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/cygwin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

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

steps:
- name: Force LF line endings
Expand All @@ -27,10 +27,11 @@ jobs:
with:
fetch-depth: 0

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

- name: Arrange for verbose output
run: |
Expand All @@ -57,9 +58,13 @@ jobs:
- name: Set up virtualenv
run: |
python -m venv .venv
python3.9 -m venv --without-pip .venv
echo 'BASH_ENV=.venv/bin/activate' >>"$GITHUB_ENV"
- name: Bootstrap pip in virtualenv
run: |
wget -qO- https://bootstrap.pypa.io/get-pip.py | python
- name: Update PyPA packages
run: |
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
Expand Down

0 comments on commit fe7533e

Please sign in to comment.