Skip to content

Commit 5d40976

Browse files
committed
Try to work in all LF on Cygwin CI
+ Style tweak and comment to clarify the "Limit $PATH" step.
1 parent 3276aac commit 5d40976

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: .github/workflows/cygwin-test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
fail-fast: false
1010
env:
1111
CHERE_INVOKING: 1
12-
SHELLOPTS: igncr
1312
TMP: "/tmp"
1413
TEMP: "/tmp"
1514
defaults:
@@ -19,7 +18,7 @@ jobs:
1918
steps:
2019
- name: Force LF line endings
2120
run: |
22-
git config --global core.autocrlf input
21+
git config --global core.autocrlf false # Affects the non-Cygwin git.
2322
shell: bash
2423

2524
- uses: actions/checkout@v4
@@ -32,11 +31,13 @@ jobs:
3231
packages: python39 python39-pip python39-virtualenv git
3332

3433
- name: Limit $PATH to Cygwin
35-
run: echo 'C:\cygwin\bin' >"$GITHUB_PATH"
34+
run: |
35+
echo 'C:\cygwin\bin' > "$GITHUB_PATH" # Overwrite it with just this.
3636
37-
- name: Tell git to trust this repo
37+
- name: Special configuration for Cygwin's git
3838
run: |
3939
git config --global --add safe.directory "$(pwd)"
40+
git config --global core.autocrlf false
4041
4142
- name: Prepare this repo for tests
4243
run: |
@@ -70,5 +71,4 @@ jobs:
7071
7172
- name: Test with pytest
7273
run: |
73-
set +x
7474
python -m pytest --color=yes -p no:sugar --instafail -vv

0 commit comments

Comments
 (0)