Skip to content

Commit ca3e690

Browse files
authored
Merge pull request #356 from WillGibson/test-multiple-python-versions
Test against all supported Python versions in GitHub Actions
2 parents 98b5f5c + 292b9c5 commit ca3e690

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,21 @@ on: [push, pull_request]
44

55
jobs:
66
tests:
7-
name: Tests
8-
runs-on: ubuntu-latest
7+
name: Test Python ${{ matrix.python-version }}
8+
# Todo: Revert to ubuntu-latest when Python 3.7 support no longer needed
9+
runs-on: ubuntu-22.04
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
914
steps:
1015
- name: Checkout
1116
uses: actions/checkout@v3
1217

13-
- name: Set up Python
14-
uses: actions/setup-python@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
1520
with:
16-
python-version: 3.12
21+
python-version: ${{ matrix.python-version }}
1722

1823
- name: Install dependencies
1924
run: |

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ click
33
junit-xml==1.8
44
setproctitle
55
textual
6+
# We use the tomlib builtin for Python 3.11 and newer
67
toml>=0.10.2; python_version < '3.11'

0 commit comments

Comments
 (0)