From b3258555130ea6d31a42187a7035d1989527073f Mon Sep 17 00:00:00 2001 From: Benjamin Dornel Date: Mon, 30 Oct 2023 23:07:40 +0800 Subject: [PATCH] refactor(ci): remove pytest xdist --- Dockerfile | 2 +- poetry.lock | 36 +----------------------------------- pyproject.toml | 3 +-- 3 files changed, 3 insertions(+), 38 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e53c4f8..486f9cd1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,7 @@ COPY monopoly ./monopoly COPY tests ./tests RUN poetry install -CMD ["python", "-m", "poetry", "run", "task", "full_test"] +CMD ["python", "-m", "poetry", "run", "task", "test"] FROM base AS runtime diff --git a/poetry.lock b/poetry.lock index 6de1449e..066654d4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -324,20 +324,6 @@ files = [ [package.extras] graph = ["objgraph (>=1.7.2)"] -[[package]] -name = "execnet" -version = "2.0.2" -description = "execnet: rapid multi-Python deployment" -optional = false -python-versions = ">=3.7" -files = [ - {file = "execnet-2.0.2-py3-none-any.whl", hash = "sha256:88256416ae766bc9e8895c76a87928c0012183da3cc4fc18016e6f050e025f41"}, - {file = "execnet-2.0.2.tar.gz", hash = "sha256:cc59bc4423742fd71ad227122eb0dd44db51efb3dc4095b45ac9a08c770096af"}, -] - -[package.extras] -testing = ["hatch", "pre-commit", "pytest", "tox"] - [[package]] name = "flake8" version = "6.1.0" @@ -1116,26 +1102,6 @@ pluggy = ">=0.12,<2.0" [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] -[[package]] -name = "pytest-xdist" -version = "3.3.1" -description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs" -optional = false -python-versions = ">=3.7" -files = [ - {file = "pytest-xdist-3.3.1.tar.gz", hash = "sha256:d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93"}, - {file = "pytest_xdist-3.3.1-py3-none-any.whl", hash = "sha256:ff9daa7793569e6a68544850fd3927cd257cc03a7ef76c95e86915355e82b5f2"}, -] - -[package.dependencies] -execnet = ">=1.1" -pytest = ">=6.2.0" - -[package.extras] -psutil = ["psutil (>=3.0)"] -setproctitle = ["setproctitle"] -testing = ["filelock"] - [[package]] name = "python-dateutil" version = "2.8.2" @@ -1481,4 +1447,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "a6db30b98922a858a1bf89cc8781ff040788d8338263feb074fa7a884a5a0cfb" +content-hash = "086c2e4dee076fc0938e0cd14b7618638acf2a8c6f99c567d37ab24e5b11f01f" diff --git a/pyproject.toml b/pyproject.toml index ec74228e..3412ff54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,6 @@ isort = "^5.12.0" taskipy = "^1.12.0" flake8 = "^6.1.0" pytest = "^7.4.1" -pytest-xdist = "^3.3.1" pysnooper = "^1.2.0" pylint-pydantic = "^0.3.0" mypy = "^1.6.1" @@ -35,7 +34,7 @@ mypy = "^1.6.1" [tool.taskipy.tasks] format = "isort . && black ." lint = "flake8 monopoly && pylint monopoly" -full_test = "pytest -n auto" +test = "pytest ." mypy = "mypy monopoly" ci = "poetry run task format && poetry run task lint && poetry run task test"