Skip to content

Commit 2cf1dd0

Browse files
authored
Merge pull request #56 from pytest-dev/fix-os-for-old-python-version/1/dev
Use older Ubuntu for testing with Python 3.5 and 3.6
2 parents 975d5a5 + 3c84ace commit 2cf1dd0

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)