Skip to content

Commit

Permalink
ci: support Python 3.5 build
Browse files Browse the repository at this point in the history
According to actions/setup-python#866,
this should fix the CERTIFICATE_VERIFY_FAILED error
while trying to fetch the EOL-ed Python 3.5.

Alternative: Remove support for Python 3.5.
  • Loading branch information
pbodnar committed Jul 14, 2024
1 parent 08094d3 commit 8956177
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
env:
# necessary for older Python versions:
# (see https://github.com/actions/setup-python/issues/866)
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -60,9 +64,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.python_version }}
env:
# necessary for older Python versions:
# (see https://github.com/actions/setup-python/issues/866)
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 8956177

Please sign in to comment.