Summary
Add an act-based end-to-end workflow test for .github/actions/upload-codescene-coverage.
The repository documents behavioural validation with act and pytest, and other actions use this pattern. This action has no .github/workflows/test-upload-codescene-coverage.yml workflow and no CodeScene reference under tests/workflows/.
Required change
Create a dedicated workflow test for the action. Run it with act from the existing pytest workflow-test infrastructure. Cover the check-mode behaviour, including the applicable and skipped pull-request contexts.
Rationale
Unit tests of shell snippets and manifest assertions do not validate GitHub Actions expression evaluation or the composite action lifecycle. An act test provides end-to-end validation of the workflow integration.
Affected areas
.github/workflows/test-upload-codescene-coverage.yml
tests/workflows/
docs/behavioural-validation-of-github-actions-with-act-and-pytest.md, if the new test requires documentation updates
Acceptance criteria
- A dedicated workflow exercises
upload-codescene-coverage through act.
- Pytest runs the workflow through the repository's established
act test infrastructure.
- Tests cover an applicable check-mode run and a skipped stacked-pull-request run.
- The test does not require production CodeScene credentials or network-dependent CLI installation.
- The workflow test is documented where required.
References
Summary
Add an
act-based end-to-end workflow test for.github/actions/upload-codescene-coverage.The repository documents behavioural validation with
actand pytest, and other actions use this pattern. This action has no.github/workflows/test-upload-codescene-coverage.ymlworkflow and no CodeScene reference undertests/workflows/.Required change
Create a dedicated workflow test for the action. Run it with
actfrom the existing pytest workflow-test infrastructure. Cover the check-mode behaviour, including the applicable and skipped pull-request contexts.Rationale
Unit tests of shell snippets and manifest assertions do not validate GitHub Actions expression evaluation or the composite action lifecycle. An
acttest provides end-to-end validation of the workflow integration.Affected areas
.github/workflows/test-upload-codescene-coverage.ymltests/workflows/docs/behavioural-validation-of-github-actions-with-act-and-pytest.md, if the new test requires documentation updatesAcceptance criteria
upload-codescene-coveragethroughact.acttest infrastructure.References