From 8cff3ce0f015c2cbee11c5f7eba41ec5ed952d29 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 b79adae..1e47e6e 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 }}