Skip to content

Commit 3e78d1b

Browse files
committed
Split up CI into a latest and a Rocky9ish run for python3 tests.
1 parent e9aacc3 commit 3e78d1b

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,47 @@ permissions:
2121
contents: read
2222

2323
jobs:
24-
python3:
24+
python3-latest:
2525
runs-on: ubuntu-latest
26+
steps:
27+
- name: Check out repository contents
28+
uses: actions/checkout@v4
29+
- name: Set up latest Python 3.x
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.x"
33+
- name: Setup environment
34+
run: |
35+
make dependencies
36+
- name: Run tests
37+
run: |
38+
make test
39+
40+
python3-rocky9ish:
41+
runs-on: ubuntu-22.04
2642
steps:
2743
- name: Check out repository contents
2844
uses: actions/checkout@v3
29-
- name: Set up Python 3.10
45+
- name: Set up Python 3.9 to mimic Rocky9
3046
uses: actions/setup-python@v3
3147
with:
32-
python-version: "3.10"
48+
python-version: "3.9"
3349
- name: Setup environment
3450
run: |
3551
make dependencies
3652
- name: Run tests
3753
run: |
3854
make test
3955
40-
python2:
56+
python2-latest:
4157
runs-on: ubuntu-latest
4258
container:
4359
image: python:2
4460
volumes:
4561
- .:/usr/src/app
4662
steps:
4763
- name: Check out repository contents
48-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
4965
- name: Setup environment
5066
run: |
5167
pip install --no-cache-dir -r requirements.txt -r local-requirements.txt

0 commit comments

Comments
 (0)