Skip to content

Commit a07fc9e

Browse files
authored
ci: Move Python 2.7 test to Ubuntu 22.04 host, run python 3.6 test in UBI8 container (#182)
* ci: Move Python 2.7 test to Ubuntu 22.04 host The "ubuntu-20.04" runner will be switched off in a week, and is currently browning out. See actions/runner-images#11101. * ci: Run python 3.6 test in UBI8 container Python 3.6 is not available in newer Ubuntu releases any more, and actions/setup-python isn't able to magically set this up either. The only interesting platform for Python 3.6 is RHEL 8, so let's run that test in an UBI RHEL 8 container.
1 parent c7e64ed commit a07fc9e

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

.github/workflows/tox-py36.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: tox
2+
on: # yamllint disable-line rule:truthy
3+
- pull_request
4+
permissions:
5+
contents: read
6+
jobs:
7+
py36:
8+
runs-on: ubuntu-latest
9+
container: registry.access.redhat.com/ubi8/ubi
10+
steps:
11+
- name: Set up Python 3.6 and pip
12+
run: dnf install -y git-core python3-pip
13+
14+
- name: checkout PR
15+
uses: actions/checkout@v4
16+
17+
- name: Install platform dependencies, python, tox
18+
run: |
19+
set -euxo pipefail
20+
python3 -m pip install --upgrade pip
21+
pip install -rtox-requirements.txt
22+
23+
- name: Run tox tests
24+
run: tox -e py36,coveralls

.github/workflows/tox.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ jobs:
1010
matrix:
1111
pyver_os:
1212
- ver: '2.7'
13-
os: ubuntu-20.04
14-
- ver: '3.6'
15-
os: ubuntu-20.04
13+
os: ubuntu-22.04
14+
# 3.6 gets tested in tox-py36.yml
1615
- ver: '3.9'
1716
os: ubuntu-latest
1817
- ver: '3.10'

0 commit comments

Comments
 (0)