Skip to content

Navigation Menu

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 97c59ae

Browse filesBrowse files
authored
Merge pull request #1709 from EliahKagan/cygwin-ci-path
Run Cygwin CI workflow commands in login shells
2 parents fee2444 + e8956e5 commit 97c59ae
Copy full SHA for 97c59ae

File tree

1 file changed

+15
-9
lines changed
Filter options

1 file changed

+15
-9
lines changed

‎.github/workflows/cygwin-test.yml

Copy file name to clipboardExpand all lines: .github/workflows/cygwin-test.yml
+15-9Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,36 @@ jobs:
1010
fail-fast: false
1111

1212
env:
13-
CHERE_INVOKING: 1
14-
TMP: "/tmp"
15-
TEMP: "/tmp"
13+
CHERE_INVOKING: "1"
14+
CYGWIN_NOWINPATH: "1"
1615

1716
defaults:
1817
run:
19-
shell: C:\cygwin\bin\bash.exe --noprofile --norc -exo pipefail -o igncr "{0}"
18+
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr "{0}"
2019

2120
steps:
2221
- name: Force LF line endings
2322
run: |
2423
git config --global core.autocrlf false # Affects the non-Cygwin git.
25-
shell: bash
24+
shell: bash # Use Git Bash instead of Cygwin Bash for this step.
2625

2726
- uses: actions/checkout@v4
2827
with:
2928
fetch-depth: 0
3029
submodules: recursive
3130

32-
- uses: cygwin/cygwin-install-action@v4
31+
- name: Install Cygwin
32+
uses: cygwin/cygwin-install-action@v4
3333
with:
3434
packages: python39 python39-pip python39-virtualenv git
35+
add-to-path: false # No need to change $PATH outside the Cygwin environment.
3536

36-
- name: Special configuration for Cygwin's git
37+
- name: Arrange for verbose output
38+
run: |
39+
# Arrange for verbose output but without shell environment setup details.
40+
echo 'set -x' >~/.bash_profile
41+
42+
- name: Special configuration for Cygwin git
3743
run: |
3844
git config --global --add safe.directory "$(pwd)"
3945
git config --global core.autocrlf false
@@ -57,7 +63,7 @@ jobs:
5763
5864
- name: Install project and test dependencies
5965
run: |
60-
python -m pip install ".[test]"
66+
pip install ".[test]"
6167
6268
- name: Show version and platform information
6369
run: |
@@ -71,4 +77,4 @@ jobs:
7177
7278
- name: Test with pytest
7379
run: |
74-
python -m pytest --color=yes -p no:sugar --instafail -vv
80+
pytest --color=yes -p no:sugar --instafail -vv

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.