From 237be65d2f7fd1e43d25bc316c382ce3761c00e5 Mon Sep 17 00:00:00 2001 From: Ian Neal Date: Fri, 16 Aug 2024 16:10:24 -0600 Subject: [PATCH 1/2] Switch python-setup Github Action to slightly different action that allows deprectaed python 2.7 --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 99fe38b..0069047 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: LizardByte/setup-python-action@master with: python-version: ${{ matrix.python-version }} - name: Install dependencies From 985289a9a66904f877c2779f20ec35dc7abe7cce Mon Sep 17 00:00:00 2001 From: Ian Neal Date: Fri, 16 Aug 2024 16:19:58 -0600 Subject: [PATCH 2/2] Workaround for https://github.com/actions/setup-python/issues/866 --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0069047..8bbbb98 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,8 @@ jobs: uses: LizardByte/setup-python-action@master with: python-version: ${{ matrix.python-version }} + env: + PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" - name: Install dependencies run: | python -m pip install --upgrade pip wheel