From 97bbee56f5e7c4882940dc65c54d548cf6f1b33d Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Mon, 24 Jun 2024 18:38:35 +0200 Subject: [PATCH] Fix python 3.5 setup in workflow See https://github.com/actions/setup-python/issues/866#issuecomment-2154968862 --- .github/workflows/pythonpackage.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index ee54eef..5d6d7db 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -44,10 +44,13 @@ jobs: # - 2.11.4 # - 2.12 - latest + # The empty env for all python but 3.5 + pip-trusted-host: [""] include: - os: ubuntu-20.04 python-version: 3.5 pandoc-version: latest + pip-trusted-host: "pypi.python.org pypi.org files.pythonhosted.org" - os: ubuntu-20.04 python-version: 3.6 pandoc-version: latest @@ -59,6 +62,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + env: + PIP_TRUSTED_HOST: ${{ matrix.pip-trusted-host }} - name: Install examples' dependencies run: sudo apt update && sudo apt install abcm2ps graphviz graphviz-dev texlive-full - name: Install dependencies—pip