From 465eb1b5a0d27f142f90654fcd977b986db9eb33 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 10 Apr 2025 14:39:27 +0200 Subject: [PATCH] Switch to containers for GitHub actions GitHub is removing Ubuntu 20.04, and Ubuntu 22.04 doesn't have Python 3.6 that we want to continue testing for. Switch to using containers instead so we have more control over when to deprecate a Python version. --- .github/workflows/test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33b475f..def0ea2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,9 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest + container: + image: python:${{ matrix.python-version }} strategy: matrix: python-version: @@ -18,10 +20,6 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - name: Update pip and setuptools run: | python -m pip install --upgrade pip