Skip to content

Commit 8fcfc33

Browse files
Overrides runs-on depending on Python version
1 parent 618aa5d commit 8fcfc33

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ on:
77

88
jobs:
99
test:
10-
runs-on: ubuntu-latest
1110
strategy:
1211
matrix:
13-
python-version: [3.6, 3.7, 3.8]
14-
12+
include:
13+
- python-version: 3.6
14+
os: ubuntu-20.04
15+
- python-version: 3.7
16+
os: ubuntu-20.04
17+
- python-version: 3.8
18+
os: ubuntu-22.04
19+
20+
runs-on: ${{ matrix.os }}
1521

1622
steps:
1723
- uses: actions/checkout@v4
@@ -45,7 +51,7 @@ jobs:
4551
path: .coverage
4652

4753
deploy:
48-
runs-on: ubuntu-latest
54+
runs-on: ubuntu-22.04
4955
needs: test
5056
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
5157

0 commit comments

Comments
 (0)