Skip to content

Commit 1c49e10

Browse files
committed
Added platform tests
1 parent 128a795 commit 1c49e10

4 files changed

Lines changed: 46 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
FORCE_COLOR: 1
1212

1313
jobs:
14-
build:
14+
tests:
1515
name: py-${{ matrix.python-version }}:pytest-${{ matrix.pytest-version }}
1616
runs-on: ubuntu-latest
1717
strategy:
@@ -25,13 +25,13 @@ jobs:
2525
"pypy3",
2626
]
2727
pytest-version: [
28-
"5.0",
29-
"5.1",
30-
"5.2",
31-
"5.3",
32-
"5.4",
33-
"6.0",
34-
"6.1",
28+
"5.0.*",
29+
"5.1.*",
30+
"5.2.*",
31+
"5.3.*",
32+
"5.4.*",
33+
"6.0.*",
34+
"6.1.*",
3535
]
3636
steps:
3737
- uses: actions/checkout@v2
@@ -58,10 +58,37 @@ jobs:
5858
- name: Install dependencies
5959
run: |
6060
python -m pip install -U pip
61-
python -m pip install pytest~=${{ matrix.pytest-version }}
61+
python -m pip install pytest==${{ matrix.pytest-version }}
6262
python -m pip install -e .
6363
6464
- name: Tests
6565
shell: bash
6666
run: |
6767
pytest
68+
69+
platform:
70+
# Test devel setup on different platforms.
71+
name: Platform-${{ matrix.os }}
72+
needs: [ tests ]
73+
runs-on: ${{ matrix.os }}
74+
strategy:
75+
matrix:
76+
os: [ubuntu-latest, windows-latest, macos-latest]
77+
steps:
78+
- name: Checkout
79+
uses: actions/checkout@v2
80+
81+
- name: Setup python
82+
uses: actions/setup-python@v2
83+
with:
84+
python-version: '3.x'
85+
architecture: 'x64'
86+
87+
- name: Development setup on platform ${{ matrix.os }}
88+
run: |
89+
python -m pip install -U pip
90+
python -m pip install pytest
91+
python -m pip install -e .
92+
93+
- name: Tests
94+
run: pytest

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: black
77
args: [--safe, --quiet, --target-version, py36]
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v3.3.0
9+
rev: v3.4.0
1010
hooks:
1111
- id: trailing-whitespace
1212
- id: end-of-file-fixer

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Requirements
1919

2020
You will need the following prerequisites in order to use pytest-rerunfailures:
2121

22-
- Python 3.6, up to 3.8, or PyPy3
22+
- Python 3.6, up to 3.9, or PyPy3
2323
- pytest 5.0 or newer
2424

2525
This package is currently tested against the last 5 minor pytest releases. In

test_pytest_rerunfailures.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ def check_outcome_field(outcomes, field_name, expected_value):
3232

3333

3434
def assert_outcomes(
35-
result, passed=1, skipped=0, failed=0, error=0, xfailed=0, xpassed=0, rerun=0,
35+
result,
36+
passed=1,
37+
skipped=0,
38+
failed=0,
39+
error=0,
40+
xfailed=0,
41+
xpassed=0,
42+
rerun=0,
3643
):
3744
outcomes = result.parseoutcomes()
3845
check_outcome_field(outcomes, "passed", passed)

0 commit comments

Comments
 (0)