@@ -14,11 +14,13 @@ jobs:
14
14
TEMP :" /tmp"
15
15
defaults :
16
16
run :
17
- shell :bash.exe --noprofile --norc -exo pipefail -o igncr "{0}"
17
+ shell :C:\cygwin\bin\ bash.exe --noprofile --norc -exo pipefail -o igncr "{0}"
18
18
19
19
steps :
20
20
-name :Force LF line endings
21
- run :git config --global core.autocrlf input
21
+ run :|
22
+ git config --global core.autocrlf input
23
+ shell :bash
22
24
23
25
-uses :actions/checkout@v4
24
26
with :
@@ -29,40 +31,44 @@ jobs:
29
31
with :
30
32
packages :python39 python39-pip python39-virtualenv git
31
33
34
+ -name :Limit $PATH to Cygwin
35
+ run :echo 'C:\cygwin\bin' >"$GITHUB_PATH"
36
+
32
37
-name :Tell git to trust this repo
33
38
run :|
34
- /usr/bin/ git config --global --add safe.directory "$(pwd)"
39
+ git config --global --add safe.directory "$(pwd)"
35
40
36
41
-name :Prepare this repo for tests
37
42
run :|
38
43
TRAVIS=yes ./init-tests-after-clone.sh
39
44
40
45
-name :Further prepare git configuration for tests
41
46
run :|
42
- /usr/bin/ git config --global user.email "travis@ci.com"
43
- /usr/bin/ git config --global user.name "Travis Runner"
47
+ git config --global user.email "travis@ci.com"
48
+ git config --global user.name "Travis Runner"
44
49
# If we rewrite the user's config by accident, we will mess it up
45
50
# and cause subsequent tests to fail
46
51
cat test/fixtures/.gitconfig >> ~/.gitconfig
47
52
48
53
-name :Update PyPA packages
49
54
run :|
50
- /usr/bin/ python -m pip install --upgrade pip setuptools wheel
55
+ python -m pip install --upgrade pip setuptools wheel
51
56
52
57
-name :Install project and test dependencies
53
58
run :|
54
- /usr/bin/ python -m pip install ".[test]"
59
+ python -m pip install ".[test]"
55
60
56
61
-name :Show version and platform information
57
62
run :|
58
- /usr/bin/uname -a
59
- /usr/bin/git version
60
- /usr/bin/python --version
61
- /usr/bin/python -c 'import sys; print(sys.platform)'
62
- /usr/bin/python -c 'import os; print(os.name)'
63
- /usr/bin/python -c 'import git; print(git.compat.is_win)'
63
+ uname -a
64
+ command -v git python
65
+ git version
66
+ python --version
67
+ python -c 'import sys; print(sys.platform)'
68
+ python -c 'import os; print(os.name)'
69
+ python -c 'import git; print(git.compat.is_win)'
64
70
65
71
-name :Test with pytest
66
72
run :|
67
73
set +x
68
- /usr/bin/ python -m pytest --color=yes -p no:sugar --instafail -vv
74
+ python -m pytest --color=yes -p no:sugar --instafail -vv