From d1bc14edbb83b434b0ce044a8a54bb55034f7c0f Mon Sep 17 00:00:00 2001 From: Andreas Hasenkopf Date: Mon, 5 May 2025 12:53:39 +0200 Subject: [PATCH] Stop using Ubuntu 20.04 image The Ubuntu 20.04 image got retired and is no longer available. Tests for Python 3.6 are run in a Docker image instead. --- .github/workflows/build.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2a27f3b..f0b450d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,15 +26,30 @@ jobs: run: | pylint --output-format colorized --rcfile .pylintrc \ bugzilla-cli setup.py bugzilla examples tests + test_3_6: + # python 3.6 is for rhel/centos8/sles15 compat + runs-on: ubuntu-latest + container: + image: python:3.6 + steps: + - uses: actions/checkout@v4 - build: - # We stick with 20.04 to get access to python 3.6 - # https://github.com/actions/setup-python/issues/544 - runs-on: ubuntu-20.04 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + pip install -r requirements.txt -r test-requirements.txt + + - name: Test with pytest + run: | + pytest + + + test: + runs-on: ubuntu-latest strategy: matrix: - # python 3.6 is for rhel/centos8/sles15 compat - python-version: ["3.6", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4