Skip to content

Commit 5e7f53d

Browse files
Merge pull request julien-duponchelle#378 from oseemann/pytest_matrix
Run tests with different Python versions
2 parents 6cd62f6 + 10488e6 commit 5e7f53d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/pytest.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ on: [push, pull_request]
33

44
jobs:
55
test:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
include:
10+
- {name: 'CPython 3.7', python: '3.7'}
11+
- {name: 'CPython 3.8', python: '3.8'}
12+
- {name: 'CPython 3.9', python: '3.9'}
13+
- {name: 'CPython 3.10', python: '3.10'}
14+
- {name: 'Pypy 3.7', python: 'pypy-3.7'}
15+
- {name: 'Pypy 3.8', python: 'pypy-3.8'}
16+
- {name: 'Pypy 3.9', python: 'pypy-3.9'}
17+
name: ${{ matrix.name }}
618
runs-on: ubuntu-latest
719
timeout-minutes: 2
820

@@ -13,7 +25,7 @@ jobs:
1325
- name: Setup Python
1426
uses: actions/setup-python@v2
1527
with:
16-
python-version: "3.7"
28+
python-version: ${{ matrix.python }}
1729

1830
- name: Run database server in docker
1931
run: |

0 commit comments

Comments
 (0)