diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37be494e..740ba86c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -218,6 +218,6 @@ jobs: - name: Install uv run: pip install uv - name: Install Playwright Browsers - run: uv run --extra integ_test playwright install --with-deps + run: uv run --extra dev playwright install --with-deps - name: Run Integration Tests - run: uv run --extra integ_test pytest integ_tests/ -v + run: uv run --extra dev pytest integ_tests/ -v diff --git a/integ_tests/README.md b/integ_tests/README.md index 72984e3d..cf80093d 100644 --- a/integ_tests/README.md +++ b/integ_tests/README.md @@ -24,5 +24,11 @@ playwright install --with-deps if you use uv, you can run ``` lang=shell -uv run --extra integ_test pytest integ_tests +uv run --extra dev pytest integ_tests +``` + +if you use tox, you can run + +``` lang=shell +tox -c pyproject.toml -e integ_test ``` diff --git a/pyproject.toml b/pyproject.toml index 46f33a10..c3f8be45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = ["pytest>=7", "waitress", "bcrypt", "argon2-cffi"] bcrypt = ["bcrypt"] argon2 = ["argon2-cffi"] ldap = ["ldap3"] -integ_test = ["pytest", "pytest-playwright"] +dev = ["flake8", "isort", "mypy", "pytest", "pytest-playwright"] [project.scripts] radicale = "radicale.__main__:run" @@ -55,7 +55,7 @@ build-backend = "setuptools.build_meta" [tool.tox] min_version = "4.0" -envlist = ["py", "flake8", "isort", "mypy"] +envlist = ["py", "flake8", "isort", "mypy", "integ_test"] [tool.tox.env.py] extras = ["test"] @@ -80,6 +80,10 @@ deps = ["mypy==1.11.0"] commands = [["mypy", "--install-types", "--non-interactive", "."]] skip_install = true +[tool.tox.env.integ_test] +deps = ["pytest", "pytest-playwright"] +commands = [["pytest", "integ_tests"]] + [tool.pytest.ini_options] norecursedirs = ["integ_tests"]