30
30
-name :Install Cygwin
31
31
uses :cygwin/cygwin-install-action@v4
32
32
with :
33
- packages :python39 python39 -pippython39 -virtualenv git
33
+ packages :python38 python38 -pippython38 -virtualenv git
34
34
add-to-path :false # No need to change $PATH outside the Cygwin environment.
35
35
36
36
-name :Arrange for verbose output
@@ -55,30 +55,23 @@ jobs:
55
55
# and cause subsequent tests to fail
56
56
cat test/fixtures/.gitconfig >> ~/.gitconfig
57
57
58
- -name :Ensure the "pip" command is available
58
+ -name :Update PyPA packages
59
59
run :|
60
- #This is used unless, and before, an updated pip is installed .
61
- ln -s pip3 /usr/bin/ pip
60
+ #Get the latest pip, setuptools, and wheel .
61
+ python3.8 -m pip install -U pip setuptools wheel
62
62
63
63
-name :Install project and test dependencies
64
64
run :|
65
- set +e
66
- for t in {1..10}; do
67
- echo "Starting try $t."
68
- timeout -s KILL "$((10 + t * 20))"s pip install ".[test]"
69
- status="$?"
70
- ((status == 137)) || break
71
- done
72
- exit "$status"
65
+ python3.8 -m pip install ".[test]"
73
66
74
67
-name :Show version and platform information
75
68
run :|
76
69
uname -a
77
- command -v gitpython
70
+ command -v gitpython3.8
78
71
git version
79
- python --version
80
- python -c 'import os, sys; print(f"sys.platform={sys.platform!r}, os.name={os.name!r}")'
72
+ python3.8 --version
73
+ python3.8 -c 'import os, sys; print(f"sys.platform={sys.platform!r}, os.name={os.name!r}")'
81
74
82
75
-name :Test with pytest
83
76
run :|
84
- pytest --color=yes -p no:sugar --instafail -vv
77
+ python3.8 -m pytest --color=yes -p no:sugar --instafail -vv