Skip to content

Commit 1241545

Browse files
committed
Added matrix in testing workflow.
Signed-off-by: Pavel Kirilin <[email protected]>
1 parent 48615c2 commit 1241545

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: "3.7"
16+
python-version: "3.9"
1717
- name: Install deps
1818
uses: knowsuchagency/poetry-install@v1
1919
env:

.github/workflows/test.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,23 @@ jobs:
4646
- name: Run mypy check
4747
run: poetry run mypy .
4848
pytest:
49-
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
py_version: ["3.7", "3.8", "3.9", "3.10"]
52+
os: [ubuntu-latest, windows-latest]
53+
runs-on: "${{ matrix.os }}"
5054
steps:
5155
- uses: actions/checkout@v2
5256
- name: Set up Python
5357
uses: actions/setup-python@v2
5458
with:
55-
python-version: "3.9"
59+
python-version: "${{ matrix.py_version }}"
60+
- name: Update pip
61+
run: python -m pip install -U pip
62+
- name: Install poetry
63+
run: python -m pip install poetry
5664
- name: Install deps
57-
uses: knowsuchagency/poetry-install@v1
65+
run: poetry install
5866
env:
5967
POETRY_VIRTUALENVS_CREATE: false
6068
- name: Run pytest check

0 commit comments

Comments
 (0)