| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 73ebcfa commit 8dc4cb0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ jobs: | |||
| 15 | 15 | ||
| 16 | 16 | defaults: | |
| 17 | 17 | run: | |
| 18 | - shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr "{0}" | ||
| 18 | + shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr "{0}" | ||
| 19 | 19 | ||
| 20 | 20 | steps: | |
| 21 | 21 | - name: Force LF line endings | |
@@ -27,11 +27,10 @@ jobs: | |||
| 27 | 27 | with: | |
| 28 | 28 | fetch-depth: 0 | |
| 29 | 29 | ||
| 30 | - - name: Install Cygwin | ||
| 31 | - uses: cygwin/cygwin-install-action@v4 | ||
| 30 | + - name: Set up Cygwin | ||
| 31 | + uses: egor-tensin/setup-cygwin@v4 | ||
| 32 | 32 | with: | |
| 33 | - packages: python38 python38-pip python38-virtualenv git | ||
| 34 | - add-to-path: false # No need to change $PATH outside the Cygwin environment. | ||
| 33 | + packages: python39=3.9.16-1 python39-pip python39-virtualenv git | ||
| 35 | 34 | ||
| 36 | 35 | - name: Arrange for verbose output | |
| 37 | 36 | run: | | |
@@ -55,23 +54,28 @@ jobs: | |||
| 55 | 54 | # and cause subsequent tests to fail | |
| 56 | 55 | cat test/fixtures/.gitconfig >> ~/.gitconfig | |
| 57 | 56 | ||
| 57 | + - name: Ensure the "pip" command is available | ||
| 58 | + run: | | ||
| 59 | + # This is used unless, and before, an updated pip is installed. | ||
| 60 | + ln -s pip3 /usr/bin/pip | ||
| 61 | + | ||
| 58 | 62 | - name: Update PyPA packages | |
| 59 | 63 | run: | | |
| 60 | - # Get the latest pip, setuptools, and wheel. | ||
| 61 | - python3.8 -m pip install -U pip setuptools wheel | ||
| 64 | + # Get the latest pip, wheel, and prior to Python 3.12, setuptools. | ||
| 65 | + python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel | ||
| 62 | 66 | ||
| 63 | 67 | - name: Install project and test dependencies | |
| 64 | 68 | run: | | |
| 65 | - python3.8 -m pip install ".[test]" | ||
| 69 | + pip install ".[test]" | ||
| 66 | 70 | ||
| 67 | 71 | - name: Show version and platform information | |
| 68 | 72 | run: | | |
| 69 | 73 | uname -a | |
| 70 | - command -v git python3.8 | ||
| 74 | + command -v git python | ||
| 71 | 75 | git version | |
| 72 | - python3.8 --version | ||
| 73 | - python3.8 -c 'import os, sys; print(f"sys.platform={sys.platform!r}, os.name={os.name!r}")' | ||
| 76 | + python --version | ||
| 77 | + python -c 'import os, sys; print(f"sys.platform={sys.platform!r}, os.name={os.name!r}")' | ||
| 74 | 78 | ||
| 75 | 79 | - name: Test with pytest | |
| 76 | 80 | run: | | |
| 77 | - python3.8 -m pytest --color=yes -p no:sugar --instafail -vv | ||
| 81 | + pytest --color=yes -p no:sugar --instafail -vv | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments