Merge pull request #2045 from maxberger/toxinteg

Run integ tests as part of tox
This commit is contained in:
Peter Bieringer
2026-03-28 09:14:44 +01:00
committed by GitHub
3 changed files with 15 additions and 5 deletions

View File

@@ -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

View File

@@ -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
```

View File

@@ -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"]