Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Run Cygwin CI workflow commands in login shells#1709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Byron merged 1 commit intogitpython-developers:mainfromEliahKagan:cygwin-ci-path
Oct 14, 2023
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions.github/workflows/cygwin-test.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,30 +10,36 @@ jobs:
fail-fast: false

env:
CHERE_INVOKING: 1
TMP: "/tmp"
TEMP: "/tmp"
CHERE_INVOKING: "1"
CYGWIN_NOWINPATH: "1"

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

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

- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

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

- name: Special configuration for Cygwin's git
- name: Arrange for verbose output
run: |
# Arrange for verbose output but without shell environment setup details.
echo 'set -x' >~/.bash_profile

- name: Special configuration for Cygwin git
run: |
git config --global --add safe.directory "$(pwd)"
git config --global core.autocrlf false
Expand All@@ -57,7 +63,7 @@ jobs:

- name: Install project and test dependencies
run: |
python -mpip install ".[test]"
pip install ".[test]"

- name: Show version and platform information
run: |
Expand All@@ -71,4 +77,4 @@ jobs:

- name: Test with pytest
run: |
python -mpytest --color=yes -p no:sugar --instafail -vv
pytest --color=yes -p no:sugar --instafail -vv

[8]ページ先頭

©2009-2025 Movatter.jp