Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure advertised pytest 7.4 compatibility #182

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
matrix:
os: ["ubuntu-latest", "windows-latest"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
tox_env: ["py"]
include:
- os: "ubuntu-latest"
python: "3.9"
tox_env: "pytest7-py"

steps:
- uses: actions/checkout@v4
Expand All @@ -56,4 +61,4 @@ jobs:
- name: Test
shell: bash
run: |
tox run -e py --installpkg `find dist/*.tar.gz`
tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`
4 changes: 2 additions & 2 deletions tests/test_subtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ def test_foo(self):
r".* 6 failed, 5 skipped in .*",
]
)
# check with `--no-fold-skipped` (which gives the correct information)
if sys.version_info >= (3, 10):
# Check with `--no-fold-skipped` (which gives the correct information).
if sys.version_info >= (3, 10) and pytest.version_tuple[:2] >= (8, 3):
result = pytester.runpytest(p, "-v", "--no-fold-skipped", "-rsf")
result.stdout.re_match_lines(
[
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[tox]
envlist = py39,py310,py311,py312,py313
envlist = py39,py310,py311,py312,py313,pytest7

[testenv]
deps =
pytest-xdist>=3.3.0
pytest7: pytest ~=7.4

commands =
pytest {posargs:tests}
Loading