Skip to content

Commit

Permalink
馃懛 pytest-xdist
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Jan 31, 2024
1 parent dceeabb commit 18a8a96
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Test Suite
run: |
echo "::add-matcher::.github/workflows/matchers/python.json"
hatch run ${{ matrix.matrix }} ${{ matrix.command }} --cov-report=xml tests/ -vv
hatch run ${{ matrix.matrix }} ${{ matrix.command }}
echo "::remove-matcher owner=python::"
- name: Upload coverage reports to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11' && matrix.command == 'matrix:cov'
Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ show_missing = true

[tool.coverage.run]
branch = true
disable_warnings = [
"module-not-measured"
]
omit = [
"hatch_pip_compile/__about__.py",
"hatch_pip_compile/hooks.py",
Expand Down Expand Up @@ -137,15 +140,16 @@ python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
dependencies = [
"pytest",
"pytest-cov",
"tomlkit"
"tomlkit",
"pytest-xdist"
]

[tool.hatch.envs.test.scripts]
cov = [
"pytest --cov-config=pyproject.toml --cov {args: tests/ -v}"
"pytest --cov --cov-config=pyproject.toml --cov-report=xml --cov-report=term-missing {args: -n auto tests/ -vv}"
]
test = [
"pytest {args: tests/ -v}"
"pytest {args: -n auto tests/ -vv}"
]

[tool.hatch.envs.versions]
Expand All @@ -166,6 +170,7 @@ matrix.version.dependencies = [
"pytest",
"pytest-cov",
"tomlkit",
"pytest-xdist",
{value = "hatch~=1.7.0", if = ["1.7.x"]},
{value = "hatch~=1.8.0", if = ["1.8.x"]},
{value = "hatch~=1.9.0", if = ["1.9.x"]}
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ filelock==3.13.1
# via virtualenv
h11==0.14.0
# via httpcore
hatch==1.9.1
hatch==1.9.3
# via hatch.envs.default
hatchling==1.21.0
hatchling==1.21.1
# via hatch
httpcore==1.0.2
# via httpx
Expand All @@ -54,7 +54,7 @@ markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.1.0
more-itertools==10.2.0
# via jaraco-classes
packaging==23.2
# via
Expand All @@ -71,7 +71,7 @@ platformdirs==4.1.0
# via
# hatch
# virtualenv
pluggy==1.3.0
pluggy==1.4.0
# via hatchling
ptyprocess==0.7.0
# via pexpect
Expand All @@ -93,7 +93,7 @@ tomli-w==1.0.0
# via hatch
tomlkit==0.12.3
# via hatch
trove-classifiers==2023.11.29
trove-classifiers==2024.1.8
# via hatchling
userpath==1.9.1
# via hatch
Expand Down
30 changes: 15 additions & 15 deletions requirements/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This file is autogenerated by hatch-pip-compile with Python 3.11
#
# [constraints] requirements.txt (SHA256: d9c0d3e653fd72da76b0006b8369ae513b73fe5fd6be5a06349bae362ea91a2e)
# [constraints] requirements.txt (SHA256: 96460b4bd8e46e15b243731b90ddbb9c10a965ad4d5022f7c91fe453522ba216)
#
# - markdown-callouts
# - markdown-exec
Expand Down Expand Up @@ -66,17 +66,17 @@ filelock==3.13.1
# virtualenv
ghp-import==2.1.0
# via mkdocs
griffe==0.38.1
griffe==0.40.0
# via mkdocstrings-python
h11==0.14.0
# via
# -c requirements.txt
# httpcore
hatch==1.9.1
hatch==1.9.3
# via
# -c requirements.txt
# hatch.envs.docs
hatchling==1.21.0
hatchling==1.21.1
# via
# -c requirements.txt
# hatch
Expand Down Expand Up @@ -107,7 +107,7 @@ jaraco-classes==3.3.0
# via
# -c requirements.txt
# keyring
jinja2==3.1.2
jinja2==3.1.3
# via
# mkdocs
# mkdocs-material
Expand All @@ -116,7 +116,7 @@ keyring==24.3.0
# via
# -c requirements.txt
# hatch
markdown==3.5.1
markdown==3.5.2
# via
# markdown-callouts
# mkdocs
Expand All @@ -125,15 +125,15 @@ markdown==3.5.1
# mkdocs-material
# mkdocstrings
# pymdown-extensions
markdown-callouts==0.3.0
markdown-callouts==0.4.0
# via hatch.envs.docs
markdown-exec==1.7.0
markdown-exec==1.8.0
# via hatch.envs.docs
markdown-it-py==3.0.0
# via
# -c requirements.txt
# rich
markupsafe==2.1.3
markupsafe==2.1.4
# via
# jinja2
# mkdocs
Expand Down Expand Up @@ -161,7 +161,7 @@ mkdocs-gen-files==0.5.0
# via hatch.envs.docs
mkdocs-literate-nav==0.6.1
# via hatch.envs.docs
mkdocs-material==9.5.3
mkdocs-material==9.5.6
# via hatch.envs.docs
mkdocs-material-extensions==1.3.1
# via mkdocs-material
Expand All @@ -171,9 +171,9 @@ mkdocstrings==0.24.0
# via
# hatch.envs.docs
# mkdocstrings-python
mkdocstrings-python==1.7.5
mkdocstrings-python==1.8.0
# via hatch.envs.docs
more-itertools==10.1.0
more-itertools==10.2.0
# via
# -c requirements.txt
# jaraco-classes
Expand Down Expand Up @@ -206,7 +206,7 @@ platformdirs==4.1.0
# mkdocs
# mkdocstrings
# virtualenv
pluggy==1.3.0
pluggy==1.4.0
# via
# -c requirements.txt
# hatchling
Expand Down Expand Up @@ -266,11 +266,11 @@ tomlkit==0.12.3
# via
# -c requirements.txt
# hatch
trove-classifiers==2023.11.29
trove-classifiers==2024.1.8
# via
# -c requirements.txt
# hatchling
urllib3==2.1.0
urllib3==2.2.0
# via requests
userpath==1.9.1
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mypy==1.8.0
# via hatch.envs.lint
mypy-extensions==1.0.0
# via mypy
ruff==0.1.10
ruff==0.1.15
# via hatch.envs.lint
typing-extensions==4.9.0
# via mypy
22 changes: 14 additions & 8 deletions requirements/requirements-matrix.py3.10.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#
# This file is autogenerated by hatch-pip-compile with Python 3.10
#
# [constraints] requirements.txt (SHA256: d9c0d3e653fd72da76b0006b8369ae513b73fe5fd6be5a06349bae362ea91a2e)
# [constraints] requirements.txt (SHA256: 96460b4bd8e46e15b243731b90ddbb9c10a965ad4d5022f7c91fe453522ba216)
#
# - pytest
# - pytest-cov
# - tomlkit
# - pytest-xdist
# - click
# - hatch<2,>=1.7.0
# - pip-tools>=6
Expand All @@ -32,7 +33,7 @@ click==8.1.7
# hatch
# pip-tools
# userpath
coverage==7.4.0
coverage==7.4.1
# via
# coverage
# pytest-cov
Expand All @@ -48,6 +49,8 @@ exceptiongroup==1.2.0
# via
# anyio
# pytest
execnet==2.0.2
# via pytest-xdist
filelock==3.13.1
# via
# -c requirements.txt
Expand All @@ -56,11 +59,11 @@ h11==0.14.0
# via
# -c requirements.txt
# httpcore
hatch==1.9.1
hatch==1.9.3
# via
# -c requirements.txt
# hatch.envs.matrix.py3.10
hatchling==1.21.0
hatchling==1.21.1
# via
# -c requirements.txt
# hatch
Expand Down Expand Up @@ -104,7 +107,7 @@ mdurl==0.1.2
# via
# -c requirements.txt
# markdown-it-py
more-itertools==10.1.0
more-itertools==10.2.0
# via
# -c requirements.txt
# jaraco-classes
Expand Down Expand Up @@ -132,7 +135,7 @@ platformdirs==4.1.0
# -c requirements.txt
# hatch
# virtualenv
pluggy==1.3.0
pluggy==1.4.0
# via
# -c requirements.txt
# hatchling
Expand All @@ -149,12 +152,15 @@ pyproject-hooks==1.0.0
# via
# -c requirements.txt
# build
pytest==7.4.4
pytest==8.0.0
# via
# hatch.envs.matrix.py3.10
# pytest-cov
# pytest-xdist
pytest-cov==4.1.0
# via hatch.envs.matrix.py3.10
pytest-xdist==3.5.0
# via hatch.envs.matrix.py3.10
rich==13.7.0
# via
# -c requirements.txt
Expand Down Expand Up @@ -186,7 +192,7 @@ tomlkit==0.12.3
# -c requirements.txt
# hatch.envs.matrix.py3.10
# hatch
trove-classifiers==2023.11.29
trove-classifiers==2024.1.8
# via
# -c requirements.txt
# hatchling
Expand Down
22 changes: 14 additions & 8 deletions requirements/requirements-matrix.py3.11.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#
# This file is autogenerated by hatch-pip-compile with Python 3.11
#
# [constraints] requirements.txt (SHA256: d9c0d3e653fd72da76b0006b8369ae513b73fe5fd6be5a06349bae362ea91a2e)
# [constraints] requirements.txt (SHA256: 96460b4bd8e46e15b243731b90ddbb9c10a965ad4d5022f7c91fe453522ba216)
#
# - pytest
# - pytest-cov
# - tomlkit
# - pytest-xdist
# - click
# - hatch<2,>=1.7.0
# - pip-tools>=6
Expand All @@ -32,7 +33,7 @@ click==8.1.7
# hatch
# pip-tools
# userpath
coverage==7.4.0
coverage==7.4.1
# via
# coverage
# pytest-cov
Expand All @@ -44,6 +45,8 @@ editables==0.5
# via
# -c requirements.txt
# hatchling
execnet==2.0.2
# via pytest-xdist
filelock==3.13.1
# via
# -c requirements.txt
Expand All @@ -52,11 +55,11 @@ h11==0.14.0
# via
# -c requirements.txt
# httpcore
hatch==1.9.1
hatch==1.9.3
# via
# -c requirements.txt
# hatch.envs.matrix.py3.11
hatchling==1.21.0
hatchling==1.21.1
# via
# -c requirements.txt
# hatch
Expand Down Expand Up @@ -100,7 +103,7 @@ mdurl==0.1.2
# via
# -c requirements.txt
# markdown-it-py
more-itertools==10.1.0
more-itertools==10.2.0
# via
# -c requirements.txt
# jaraco-classes
Expand Down Expand Up @@ -128,7 +131,7 @@ platformdirs==4.1.0
# -c requirements.txt
# hatch
# virtualenv
pluggy==1.3.0
pluggy==1.4.0
# via
# -c requirements.txt
# hatchling
Expand All @@ -145,12 +148,15 @@ pyproject-hooks==1.0.0
# via
# -c requirements.txt
# build
pytest==7.4.4
pytest==8.0.0
# via
# hatch.envs.matrix.py3.11
# pytest-cov
# pytest-xdist
pytest-cov==4.1.0
# via hatch.envs.matrix.py3.11
pytest-xdist==3.5.0
# via hatch.envs.matrix.py3.11
rich==13.7.0
# via
# -c requirements.txt
Expand All @@ -174,7 +180,7 @@ tomlkit==0.12.3
# -c requirements.txt
# hatch.envs.matrix.py3.11
# hatch
trove-classifiers==2023.11.29
trove-classifiers==2024.1.8
# via
# -c requirements.txt
# hatchling
Expand Down
Loading

0 comments on commit 18a8a96

Please sign in to comment.