Skip to content

Commit 3c84ace

Browse files
committed
Use older Ubuntu for testing with Python 3.5 and 3.6
This commit changes the Github Actions workflow configuration to use an older version of Ubuntu for testing on Python 3.5 and 3.6 - namely Ubuntu 20.04 instead of the current default 22.04. The runners that Github provides with Ubuntu 22.04 don't support versions of Python prior to 3.7. We will remove support for Python <3.7 at some point, when a code change makes it necessary, but for now there happens to be nothing in the code that breaks with Python 3.5 or 3.6 and it's easy enough to support those versions, which is why I'm not removing support for them entirely yet. I also upgraded the workflow configuration from the beta version of Python 3.11 to the final release version.
1 parent 4a5fbd8 commit 3c84ace

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-latest
9+
runs-on: '${{ matrix.os }}'
1010
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/
1111
if: >
1212
github.event_name != 'pull_request'
@@ -15,17 +15,25 @@ jobs:
1515
matrix:
1616
# Not all Python versions are available for linux AND x64
1717
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
18-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11.0-beta - 3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
18+
os: ['ubuntu-latest']
19+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
1920
extra: ['', '-smtp']
2021
# The forced pytest versions correspond with the lower bounds in tox.ini
2122
pytest-version: ['', '--force-dep pytest==4', '--force-dep pytest==6.2.4']
23+
include:
24+
- os: 'ubuntu-20.04'
25+
python-version: '3.5'
26+
pytest-version: ''
27+
- os: 'ubuntu-20.04'
28+
python-version: '3.5'
29+
pytest-version: '--force-dep pytest==4'
30+
- os: 'ubuntu-20.04'
31+
python-version: '3.6'
2232
exclude:
23-
- python-version: '3.5'
24-
pytest-version: '--force-dep pytest==6.2.4'
25-
- python-version: '3.10'
26-
pytest-version: '--force-dep pytest==4'
27-
- python-version: '3.11.0-beta - 3.11'
28-
pytest-version: '--force-dep pytest==4'
33+
- python-version: '3.10'
34+
pytest-version: '--force-dep pytest==4'
35+
- python-version: '3.11'
36+
pytest-version: '--force-dep pytest==4'
2937
fail-fast: false
3038

3139
steps:

0 commit comments

Comments
 (0)