From 8298d1706413634bdae828ef5226f87f2b40cf48 Mon Sep 17 00:00:00 2001 From: Joe Haines Date: Fri, 17 May 2024 12:29:56 +0100 Subject: [PATCH] Fix setup-python installation error with 3.5 See https://github.com/actions/setup-python/issues/866 https://github.com/actions/setup-python/issues/866#issuecomment-2109784318 --- .github/workflows/license-audit.yml | 4 +++- .github/workflows/python-package.yml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license-audit.yml b/.github/workflows/license-audit.yml index 5f0998ea..3e938a25 100644 --- a/.github/workflows/license-audit.yml +++ b/.github/workflows/license-audit.yml @@ -15,7 +15,9 @@ jobs: uses: actions/setup-python@v2 with: # License Finder's Docker image uses Python 3.5 - python-version: 3.5 + python-version: '3.5' + env: + PIP_TRUSTED_HOST: 'pypi.python.org pypi.org files.pythonhosted.org' - name: Fetch decisions.yml run: curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/global.yml -o decisions.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 6525b40a..de2824ea 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -14,6 +14,7 @@ jobs: include: - python-version: '3.5' os: 'ubuntu-20.04' + pip-trusted-host: 'pypi.python.org pypi.org files.pythonhosted.org' - python-version: '3.6' os: 'ubuntu-20.04' @@ -24,6 +25,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + env: + PIP_TRUSTED_HOST: ${{ matrix.pip-trusted-host }} - name: Install dependencies run: |