Skip to content

Commit 79937a4

Browse files
committed
test with different pytest versions
1 parent 2747a9e commit 79937a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
16+
pytest-version: [4.6.11, 5.4.3]
17+
18+
exclude:
19+
# pytest 5.x.x doesn't support Python 2.7
20+
- python-version: 2.7
21+
pytest-version: 5.4.3
1622

1723
steps:
1824
- uses: actions/checkout@v2
@@ -25,7 +31,7 @@ jobs:
2531
- name: Install dependencies
2632
run: |
2733
python -m pip install --upgrade pip
28-
pip install -r requirements.txt
34+
pip install pytest==${{ matrix.pytest-version }}
2935
3036
- name: Install itself
3137
run: python setup.py install

0 commit comments

Comments
 (0)