Skip to content

Commit bad7092

Browse files
Stop using Ubuntu 20.04 image (#232)
The Ubuntu 20.04 image got retired and is no longer available. Tests for Python 3.6 are run in a Docker image instead.
1 parent 83eee19 commit bad7092

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,30 @@ jobs:
2626
run: |
2727
pylint --output-format colorized --rcfile .pylintrc \
2828
bugzilla-cli setup.py bugzilla examples tests
29+
test_3_6:
30+
# python 3.6 is for rhel/centos8/sles15 compat
31+
runs-on: ubuntu-latest
32+
container:
33+
image: python:3.6
34+
steps:
35+
- uses: actions/checkout@v4
2936

30-
build:
31-
# We stick with 20.04 to get access to python 3.6
32-
# https://github.com/actions/setup-python/issues/544
33-
runs-on: ubuntu-20.04
37+
- name: Install dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install pytest
41+
pip install -r requirements.txt -r test-requirements.txt
42+
43+
- name: Test with pytest
44+
run: |
45+
pytest
46+
47+
48+
test:
49+
runs-on: ubuntu-latest
3450
strategy:
3551
matrix:
36-
# python 3.6 is for rhel/centos8/sles15 compat
37-
python-version: ["3.6", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]
52+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3853

3954
steps:
4055
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)