Skip to content

Commit 0c85c1a

Browse files
Update pytest.yml
Updated the workflow to test on python versions 3.10, 3.11 and 3.12
1 parent db41856 commit 0c85c1a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/pytest.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ jobs:
1515
name: Run Pytest
1616
runs-on: ubuntu-latest
1717

18+
strategy:
19+
matrix:
20+
python-version: [3.10, 3.11, 3.12]
21+
1822
steps:
1923
- name: Checkout code
2024
uses: actions/checkout@v4
2125

22-
- name: Set up Python
26+
- name: Set up Python ${{ matrix.python-version }}
2327
uses: actions/setup-python@v5.1.0
2428
with:
25-
python-version: '3.10'
29+
python-version: ${{ matrix.python-version }}
2630

2731
- name: Install dependencies
2832
run: |
@@ -31,4 +35,4 @@ jobs:
3135
pip install -r requirements/requirements-test.txt
3236
3337
- name: Run Pytest
34-
run: pytest tests/
38+
run: pytest tests/

0 commit comments

Comments
 (0)