From fd3c3f975f7a892f5475257fd0b2d35b0467833a Mon Sep 17 00:00:00 2001 From: Constantine Nathanson Date: Sun, 15 Jun 2025 14:16:09 +0300 Subject: [PATCH 1/2] Fix tests --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6bcada0..e77b08f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 # focal equivalent + runs-on: ubuntu-24.04 # noble equivalent strategy: matrix: From 3518be1ca7e785e48db26f936010de8981c0e0b2 Mon Sep 17 00:00:00 2001 From: Constantine Nathanson Date: Sun, 15 Jun 2025 14:20:56 +0300 Subject: [PATCH 2/2] Drop python2 tests --- .github/workflows/test.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e77b08f9..20499990 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,8 +9,6 @@ jobs: strategy: matrix: include: - - python-version: "2.7" - toxenv: py27-core - python-version: "3.9" toxenv: py39-core - python-version: "3.10" @@ -21,8 +19,6 @@ jobs: toxenv: py312-core - python-version: "3.13" toxenv: py313-core - - python-version: "2.7" - toxenv: py27-django111 - python-version: "3.9" toxenv: py39-django32 - python-version: "3.10" @@ -39,22 +35,9 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 - if: matrix.python-version != '2.7' with: python-version: ${{ matrix.python-version }} - - name: Install Python 2.7 and set as default - if: matrix.python-version == '2.7' - run: | - sudo apt-get update - sudo apt-get install -y python2 curl - sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1 - curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py - sudo python get-pip.py - sudo ln -sf /usr/local/bin/pip2 /usr/bin/pip || true - python --version - pip --version - - name: Install dependencies run: | python -m pip install --upgrade pip