Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests dir validation logic #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

glasnt
Copy link

@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 😅 )

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