Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Python 3.8 on Cygwin CI #2

Merged
merged 29 commits into from
Jan 28, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f5992d2
Try not installing/upgrading wheel for Cygwin CI
EliahKagan Jan 26, 2024
ace9eea
Try not upgrading/installing pip/setuptools either on Cygwin
EliahKagan Jan 26, 2024
92d1e48
Try installing pytho39-wheel Cygwin package
EliahKagan Jan 26, 2024
fce86d9
Try upgrading wheel, but after upgrading pip
EliahKagan Jan 26, 2024
5559caa
Try always running pip on Cygwin as "python -m pip"
EliahKagan Jan 26, 2024
1b69cf0
Try using a venv on Cygwin
EliahKagan Jan 26, 2024
6faa376
Use "python -v -m pip" to see some of what's going on
EliahKagan Jan 26, 2024
1837c53
Undo venv; use "python -m pip -vvv" to see what's going on
EliahKagan Jan 26, 2024
0c1cfbf
Undo all debugging changes except passing "-vvv"
EliahKagan Jan 26, 2024
6f36edd
Try with "--no-cache-dir"
EliahKagan Jan 26, 2024
b532be2
Try with different tmp dir for pip runs
EliahKagan Jan 26, 2024
b3de81b
Try with python39=3.9.16-1
EliahKagan Jan 26, 2024
a66b0d8
Try not upgrading setuptools
EliahKagan Jan 26, 2024
8319147
Try not installing Cygwin python39-pip package
EliahKagan Jan 26, 2024
2a72692
Run pip freeze effectively
EliahKagan Jan 26, 2024
7b84c9a
Try not installing python39-virtualenv either
EliahKagan Jan 26, 2024
2bb2f6b
Try giving IPv4 for files.pythonhosted.org in hosts file
EliahKagan Jan 27, 2024
7be530a
Try downloading wheel with wget
EliahKagan Jan 27, 2024
4c9df43
Try with python39-pip=23.0.1-1
EliahKagan Jan 27, 2024
fd49bcf
Pin pip with pip (Cygwin package doesn't pin)
EliahKagan Jan 27, 2024
3019bf8
Stop pinning; keep skipping -U for PyPA; instrument with -vvv
EliahKagan Jan 27, 2024
9184a72
Try installing coverage[toml] separately
EliahKagan Jan 27, 2024
bf54c2f
Unset -vvv to see the bigger picture more easily
EliahKagan Jan 27, 2024
0b82dc6
Try killing pip after a timeout and rerunning it
EliahKagan Jan 27, 2024
20f1004
Use SIGKILL
EliahKagan Jan 27, 2024
884c9dc
Increase timeout from 70 to 120 seconds per try
EliahKagan Jan 27, 2024
4952a72
Give each try a little more time than the last
EliahKagan Jan 27, 2024
b5865ff
Tweak (re)try parameters
EliahKagan Jan 27, 2024
34bbf73
Try Python 3.8
EliahKagan Jan 27, 2024
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
21 changes: 8 additions & 13 deletions .github/workflows/cygwin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install Cygwin
uses: cygwin/cygwin-install-action@v4
with:
packages: python39 python39-pip python39-virtualenv git
packages: python38 python38-pip python38-virtualenv git
add-to-path: false # No need to change $PATH outside the Cygwin environment.

- name: Arrange for verbose output
Expand All @@ -55,28 +55,23 @@ jobs:
# and cause subsequent tests to fail
cat test/fixtures/.gitconfig >> ~/.gitconfig

- name: Ensure the "pip" command is available
run: |
# This is used unless, and before, an updated pip is installed.
ln -s pip3 /usr/bin/pip

- name: Update PyPA packages
run: |
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
# Get the latest pip, setuptools, and wheel.
python3.8 -m pip install -U pip setuptools wheel

- name: Install project and test dependencies
run: |
pip install ".[test]"
python3.8 -m pip install ".[test]"

- name: Show version and platform information
run: |
uname -a
command -v git python
command -v git python3.8
git version
python --version
python -c 'import os, sys; print(f"sys.platform={sys.platform!r}, os.name={os.name!r}")'
python3.8 --version
python3.8 -c 'import os, sys; print(f"sys.platform={sys.platform!r}, os.name={os.name!r}")'

- name: Test with pytest
run: |
pytest --color=yes -p no:sugar --instafail -vv
python3.8 -m pytest --color=yes -p no:sugar --instafail -vv
Loading