From 8956177042d42a6a31c9081a130d3e292ffd9aee Mon Sep 17 00:00:00 2001 From: Petr Bodnar Date: Sun, 14 Jul 2024 09:18:58 +0200 Subject: [PATCH] ci: support Python 3.5 build According to https://github.com/actions/setup-python/issues/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. --- .github/workflows/python-package.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 75b3d65..c816539 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 @@ -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