From a506b428e296dda76d903eccc9b6c0a0a2d18f0b Mon Sep 17 00:00:00 2001 From: Andrea Francia <260852+andreafrancia@users.noreply.github.com> Date: Sat, 25 May 2024 15:32:08 +0200 Subject: [PATCH] Save. --- .github/workflows/run-tests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 37ce6700..00a93112 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -34,11 +34,18 @@ jobs: steps: - uses: actions/checkout@v4 - - name: update certificate - run: sudo update-ca-certificates -v - if: + - name: Set up 3.5 Python + if: ${{ matrix.python-version == '3.5' }} + uses: actions/setup-python@v5 + env: + # Workaround copied from + # https://github.com/ytdl-org/youtube-dl/commit/a08f2b7e4567cdc50c0614ee0a4ffdff49b8b6e6 + PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" + with: + python-version: ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 + if: ${{ matrix.python-version != '3.5' }} with: python-version: ${{ matrix.python_version }} - name: Upgrade pip