Skip to content

Commit 5c5750f

Browse files
committed
Point GitHub Actions build to correct Ubuntu image for older Python versions
1 parent 382cd1c commit 5c5750f

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/python-tests.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,30 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
1211
strategy:
1312
fail-fast: false
1413
matrix:
15-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"]
14+
# Older Python versions on Ubuntu 20.04
15+
- python-version: "3.6"
16+
os: ubuntu-20.04
17+
- python-version: "3.7"
18+
os: ubuntu-20.04
19+
20+
# Newer Python versions on latest Ubuntu
21+
- python-version: "3.8"
22+
os: ubuntu-24.04
23+
- python-version: "3.9"
24+
os: ubuntu-24.04
25+
- python-version: "3.10"
26+
os: ubuntu-24.04
27+
- python-version: "3.11"
28+
os: ubuntu-24.04
29+
- python-version: "3.12"
30+
os: ubuntu-24.04
31+
- python-version: "pypy-3.9"
32+
os: ubuntu-24.04
33+
34+
runs-on: ${{ matrix.os }}
1635

1736
steps:
1837
- uses: actions/checkout@v3

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ locally in developer mode to hack on it yourself::
3737
$> cd guano-py
3838
$> python setup.py develop
3939

40-
|Documentation Status|
40+
|Master Tests| |Dev Tests| |Documentation Status|
4141

4242

4343
API Usage
@@ -91,5 +91,9 @@ API Usage
9191
.. _GUANO: http://guano-md.org
9292
.. _useful scripts: bin/
9393

94+
.. |Master Tests| image:: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml/badge.svg?branch=master
95+
:target: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml?query=branch%3Amaster
96+
.. |Dev Tests| image:: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml/badge.svg?branch=dev
97+
:target: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml?query=branch%3Adev
9498
.. |Documentation Status| image:: https://readthedocs.org/projects/guano-py/badge/?version=latest
9599
:target: http://guano-py.readthedocs.io/en/latest/?badge=latest

0 commit comments

Comments
 (0)