Skip to content

Commit eb121a6

Browse files
committed
infra: support new ubuntu 22.04 runners.
Inverted logic from before. Run all python versions on 22.04. Do not run any except 3.6 and 3.11 on 20.04. Python 3.6 is not and will not be available on 22.04. Also run 3.12-dev on 22.04.
1 parent 0f357ba commit eb121a6

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/ci-test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,36 +45,36 @@ jobs:
4545
max-parallel: 4
4646
matrix:
4747
# Run in all these versions of Python
48-
python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6", "3.11-dev" ]
48+
python-version:
49+
- "2.7"
50+
- "3.10"
51+
- "3.9"
52+
- "3.8"
53+
- "3.7"
54+
- "3.11"
4955

5056
# use for multiple os or ubuntu versions
5157
#os: [ubuntu-latest, macos-latest, windows-latest]
52-
os: [ubuntu-latest, ubuntu-22.04]
58+
# ubuntu latest 22.04 12/2022
59+
os: [ubuntu-latest, ubuntu-20.04]
5360

5461
# if the ones above fail. fail the build
5562
experimental: [false]
5663

5764
include:
5865
# example: if 3.12 fails the jobs still succeeds
59-
- python-version: 3.12.0-alpha
66+
- python-version: 3.12-dev
6067
os: ubuntu-22.04
6168
experimental: [true]
62-
# version 2.7 not available on unbuntu-22.04 github
63-
#- python-version: 2.7
64-
# os: ubuntu-22.04
65-
# experimental: true
6669
- python-version: 3.11-dev
67-
os: ubuntu-22.04
68-
experimental: [true]
69-
# Fail the run if these fail
70-
#- python-version: 3.6
71-
# os: ubuntu-20.04
72-
#- python-version: 2.7
73-
# os: ubuntu-20.04
70+
os: ubuntu-20.04
71+
# 3.6 not available on new 22.04 runners, so run on 20.04 ubuntu
72+
- python-version: 3.6
73+
os: ubuntu-20.04
7474

7575
exclude:
76-
# skip all python versions on 22.04 except explicitly included
77-
- os: ubuntu-22.04
76+
# skip all python versions on 20.04 except explicitly included
77+
- os: ubuntu-20.04
7878

7979
env:
8080
# get colorized pytest output even without a controlling tty

0 commit comments

Comments
 (0)