From d5b47b869a9d958b18e928e8f4b13deb5579b25c Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Thu, 5 Sep 2024 18:06:05 +0800 Subject: [PATCH] Skip cert check on python 3.5 ref: https://github.com/actions/setup-python/issues/866 --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4573b80..86559ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,14 @@ jobs: steps: - uses: actions/checkout@v4 + + - name: Ignore certificate verification on python 3.5 + shell: bash + run: | + # INSECURE!! But it should be OK for CI tests. + echo 'PIP_TRUSTED_HOST=pypi.python.org pypi.org files.pythonhosted.org' >>$GITHUB_ENV + if: 'matrix.python-version == 3.5' + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }}