Skip to content

Add optional test_requirements input to the PR gate - #8

Merged
pbujna-apius merged 1 commit into
mainfrom
feat/optional-test-requirements
Sep 25, 2026
Merged

pbujna-apius merged 1 commit into
mainfrom
feat/optional-test-requirements

Conversation

@pbujna-apius

Copy link
Copy Markdown
Contributor

Summary

  • New optional app-ci.yml input test_requirements: path (relative to the repo root) of a pip requirements file. When set, a new step runs pip install -r <file> right after the ruff/pytest tooling install and before ruff/pytest; it fails with a ::error:: if the file is missing.
  • Default empty: the step is skipped via if: ${{ inputs.test_requirements != '' }}, so existing callers get exactly today's behaviour.
  • release.yml is unchanged (it runs no tests).
  • README: input documented; UCC caller example extended (noted as ci.yml caller only).

Motivation: pbujna-apius/splunk-add-on-for-sap-cloud PR #2 fails in Tests with ModuleNotFoundError: No module named 'requests'.

Test plan

🤖 Generated with Claude Code

Apps whose tests import third-party packages (e.g. requests, responses)
can now pass a pip requirements file path; it is installed after the
ruff/pytest tooling and before lint/tests, and the gate fails clearly if
the file is missing. Empty (the default) skips the step, so existing
callers are unaffected. release.yml runs no tests and is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@pbujna-apius
pbujna-apius requested a review from a team as a code owner September 24, 2026 13:55
@pbujna-apius
pbujna-apius merged commit 50f3110 into main Sep 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant