Local testing¶
makeapp comes with the ability to run tests (like tox, etc.) in different virtual environments:
Note
- Static dependencies are taken from
testsgroup ofdependency-groups(frompyproject.toml). - Dynamic (varying environment) dependencies are taken from GitHub Actions workflow (see
strategy.matrix).
Tune tests¶
You may configure tests in pyproject.toml.
[tool.makeapp.tests]
workflow_github = "python-package.yml" # This is the default (file from .github/workflows/), can be omitted.
deps = [
# Additional dynamic dependencies are described here.
"django~=${{ django-version }}.0",
]
Run tests¶
Note
At the very beginning of the output all known environment are shown.
Use --only (-o) to run in certain environments: