Skip to content

Conversation

@glasnt
Copy link
Contributor

@glasnt glasnt commented Oct 5, 2024

Found this while developing a package using this repo. My PR tests were passing, but the publish failed due to testing failures.

What I saw was that because I had some tests fail, the step was returning the echo "Tests directory not found", and the step was successful.

...
=========================== short test summary info ============================
ERROR tests/test_...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.19s ===============================
Tests directory not found

https://github.com/glasnt/janky/commits/showcase/ shows the issue and resolution I experienced.

Current version causes the right side to execute if either left side fails (including pytest failing). Suggested fix turns the check into a full conditional.

(Submitted in a GitHub-web based editing, as making a full fork to then submit a patch ran the initial Workflow and the PR had a whole lot more files than expected 😅 )

@simonw
Copy link
Owner

simonw commented Feb 18, 2025

Eek, I just hit this one too! Thanks.

@simonw simonw merged commit 512a872 into simonw:main Feb 18, 2025
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