Skip to content

Commit 1b69cf0

Browse files
committed
Try using a venv on Cygwin
1 parent 5559caa commit 1b69cf0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/cygwin-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,24 @@ jobs:
5555
# and cause subsequent tests to fail
5656
cat test/fixtures/.gitconfig >> ~/.gitconfig
5757
58+
- name: Create virtual environment
59+
run: |
60+
python -m venv .venv
61+
5862
- name: Update PyPA packages
5963
run: |
6064
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
65+
. .venv/bin/activate
6166
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
6267
6368
- name: Install project and test dependencies
6469
run: |
70+
. .venv/bin/activate
6571
python -m pip install ".[test]"
6672
6773
- name: Show version and platform information
6874
run: |
75+
. .venv/bin/activate
6976
uname -a
7077
command -v git python
7178
git version
@@ -74,4 +81,5 @@ jobs:
7481
7582
- name: Test with pytest
7683
run: |
84+
. .venv/bin/activate
7785
pytest --color=yes -p no:sugar --instafail -vv

0 commit comments

Comments
 (0)