Skip to content

Commit 486a392

Browse files
committed
Duplicate proper container version of the python3-latest runner from edge to get
around the minor python version fluctuations we saw even for almost concurrent runs when using native ubuntu-latest runners.
1 parent 25c8389 commit 486a392

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ permissions:
2323
contents: read
2424

2525
jobs:
26-
python3-latest:
26+
# NOTE: this one has minor version fluctuations even between runners
27+
python3-latest-ubuntu:
2728
runs-on: ubuntu-latest
2829
steps:
2930
- name: Check out repository contents
@@ -39,6 +40,23 @@ jobs:
3940
run: |
4041
make unittest
4142
43+
# We rely on containers for everything else for consistency
44+
python3-latest:
45+
runs-on: ubuntu-latest
46+
container:
47+
image: python:3
48+
volumes:
49+
- .:/usr/src/app
50+
steps:
51+
- name: Check out repository contents
52+
uses: actions/checkout@v4
53+
- name: Setup environment
54+
run: |
55+
make PYTHON_BIN=python3 dependencies
56+
- name: Run tests
57+
run: |
58+
make PYTHON_BIN=python3 unittest
59+
4260
python3-rocky9:
4361
runs-on: ubuntu-22.04
4462
container:

0 commit comments

Comments
 (0)