Skip to content

Commit

Permalink
Try to work in all LF on Cygwin CI
Browse files Browse the repository at this point in the history
+ Style tweak and comment to clarify the "Limit $PATH" step.
  • Loading branch information
EliahKagan committed Sep 25, 2023
1 parent 3276aac commit 5d40976
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cygwin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
fail-fast: false
env:
CHERE_INVOKING: 1
SHELLOPTS: igncr
TMP: "/tmp"
TEMP: "/tmp"
defaults:
Expand All @@ -19,7 +18,7 @@ jobs:
steps:
- name: Force LF line endings
run: |
git config --global core.autocrlf input
git config --global core.autocrlf false # Affects the non-Cygwin git.
shell: bash

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

- name: Limit $PATH to Cygwin
run: echo 'C:\cygwin\bin' >"$GITHUB_PATH"
run: |
echo 'C:\cygwin\bin' > "$GITHUB_PATH" # Overwrite it with just this.
- name: Tell git to trust this repo
- name: Special configuration for Cygwin's git
run: |
git config --global --add safe.directory "$(pwd)"
git config --global core.autocrlf false
- name: Prepare this repo for tests
run: |
Expand Down Expand Up @@ -70,5 +71,4 @@ jobs:
- name: Test with pytest
run: |
set +x
python -m pytest --color=yes -p no:sugar --instafail -vv

0 comments on commit 5d40976

Please sign in to comment.