build-test.yml
Checks out the repo, installs dependencies with uv sync, optionally runs ruff, then runs pytest. For repos that require a Postgres or pgvector service, use build-test-postgres.yml instead.
Required status check name
The check name is {calling-job-name} / test. If you name the calling job differently, the check name changes accordingly.
Inputs
| Input | Type | Default | Description |
|---|---|---|---|
python-version |
string | 3.12 |
Python version |
ruff |
boolean | true |
Whether to run ruff check . |
setup-script |
string | '' |
Path to a shell script to run before tests (for setup that cannot be expressed as a generic input) |
Usage
jobs:
build-test:
uses: AustralianCancerDataNetwork/cava-devops/.github/workflows/build-test.yml@main
With a custom Python version and a setup script: