spec: inputs: stage: description: "The stage of the job." default: test project_path: description: "The path to the project root directory." default: '.' pytest_cmd: description: "The command running tests with pytest." default: 'pytest $PROJECT_PATH' --- pytest: image: swepy/pytest:latest variables: PROJECT_PATH: $[[ inputs.project_path ]] PYTEST_CMD: $[[ inputs.pytest_cmd ]] stage: $[[ inputs.stage ]] script: - $PYTEST_CMD