Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9b9568

Browse files
committed
Update to latest version of pytest and fix tox.ini
1 parent c33a49d commit a9b9568

File tree

4 files changed

+27
-28
lines changed

4 files changed

+27
-28
lines changed

‎.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install toxtox-gh-actions
24+
pip install "tox>=4.4,<5" "tox-gh-actions>=3.1,<4"
2525
2626
- name: Run unit tests with tox
2727
run: tox

‎poetry.lock

Lines changed: 14 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,16 @@ typing-extensions = [
4949
optional = true
5050

5151
[tool.poetry.group.test.dependencies]
52-
pytest = "^7.2"
52+
pytest = "^7.3"
5353
pytest-asyncio = ">=0.21,<1"
5454
pytest-benchmark = "^4.0"
5555
pytest-cov = "^4.0"
56-
pytest-describe = "^2.0"
56+
pytest-describe = "^2.1"
5757
pytest-timeout = "^2.1"
58-
tox = ">=3.0"
58+
tox = [
59+
{ version = ">=4.4,<5", python = ">=3.8" },
60+
{ version = ">=3.28,<4", python = "<3.8" }
61+
]
5962

6063
[tool.poetry.group.lint]
6164
optional = true
@@ -146,7 +149,7 @@ module = [
146149
disallow_untyped_defs = false
147150

148151
[tool.pytest.ini_options]
149-
minversion = "7.2"
152+
minversion = "7.3"
150153
# Only run benchmarks as tests.
151154
# To actually run the benchmarks, use --benchmark-enable on the command line.
152155
# To run the slow tests (fuzzing), add --run-slow on the command line.

‎tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ isolated_build = true
44

55
[gh-actions]
66
python =
7-
3: py39
7+
3: py311
88
3.7: py37
99
3.8: py38
1010
3.9: py39
@@ -38,7 +38,7 @@ commands =
3838
basepython = python3.11
3939
deps =
4040
mypy==1.2.0
41-
pytest>=7.2,<8
41+
pytest>=7.3,<8
4242
commands =
4343
mypy src tests
4444

@@ -52,15 +52,15 @@ commands =
5252

5353
[testenv]
5454
deps =
55-
pytest>=7.2,<8
55+
pytest>=7.3,<8
5656
pytest-asyncio>=0.21,<1
5757
pytest-benchmark>=4,<5
5858
pytest-cov>=4,<5
59-
pytest-describe>=2,<3
59+
pytest-describe>=2.1,<3
6060
pytest-timeout>=2.1,<3
6161
py37,py38,py39,pypy39: typing-extensions>=4.5,<5
6262
commands =
6363
# to also run the time-consuming tests: tox -e py310 -- --run-slow
6464
# to run the benchmarks: tox -e py310 -- -k benchmarks --benchmark-enable
65-
py37,py38.py39,py311,pypy39: pytest tests {posargs}
65+
py37,py38,py39,py311,pypy39: pytest tests {posargs}
6666
py310: pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /