Skip to content

Handle pytest “no tests collected” in build workflow - #1

Draft
fidel147 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-build-job
Draft

Handle pytest “no tests collected” in build workflow#1
fidel147 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-build-job

Conversation

Copilot AI commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

The build GitHub Actions job fails when pytest exits with code 5 (no tests collected), even though this is not a test failure. This change updates the workflow to treat that case as non-fatal while preserving failure behavior for real pytest errors.

  • Workflow behavior change (.github/workflows/python-app.yml)

    • Adjusted the pytest step to allow exit code 5 only.
    • All other non-zero pytest exit codes still fail the job.
  • Failure mode addressed

    • Previous behavior:
      pytest
    • Updated behavior:
      pytest || [ $? -eq 5 ]

Co-authored-by: fidel147 <196988566+fidel147@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job build Handle pytest “no tests collected” in build workflow Aug 14, 2026
Copilot AI requested a review from fidel147 August 14, 2026 22:21

@fidel147 fidel147 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

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.

2 participants