Add tests
The template's CI runs repository checks. Add a test runner and a separate CI step when your project is ready to test its behavior.
Run your tests locally
After initializing the project, you can add pytest as a development dependency.
uv add --dev pytest
Create tests/, add a file such as test_app.py, and give each test function a name starting with test_. Run pytest from the repository root.
uv run pytest
Run your tests in CI
Once tests pass locally, add a job or step to your project's GitHub Actions workflow that sets up uv and runs the same test command. Commit pyproject.toml and uv.lock so CI can reproduce the test environment. For CI runs that should fail if the lockfile is out of date, use uv run --locked pytest.