-
Notifications
You must be signed in to change notification settings - Fork 5
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
chore: set safer bash config #626
Conversation
it seems that |
this is failing because the test is attempting to use pydantic-2 and pipeline only supports pydantic-1 - see opensafely-core/pipeline#159 |
b3d4f31
to
1152721
Compare
rebased on pydantic-2 - now blocked by the colima issue #641 |
3354a9b
to
a2a9378
Compare
61f6b14
to
4235388
Compare
* this grep was verifying there was at least one non-test, *not* that there were no tests
4235388
to
4920a00
Compare
if unzip -Z -1 dist/*.whl | grep -q "^tests"; then | ||
echo "Built wheel contains tests!" | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tom@MadBook3 just-and-shell-tests % unzip -Z -1 does-not-contain-tests.zip | grep "^tests"
tom@MadBook3 just-and-shell-tests % unzip -Z -1 contains-tests.zip | grep "^tests"
tests/
tests/file3
tom@MadBook3 just-and-shell-tests % cat not-in-list.sh
#!/bin/bash
set -euo pipefail
if unzip -Z -1 contains-tests.zip | grep -q "^tests"; then
echo "contains tests"
else
echo "does not contain tests"
fi
if unzip -Z -1 does-not-contain-tests.zip | grep -q "^tests"; then
echo "contains tests"
else
echo "does not contain tests"
fi
tom@MadBook3 just-and-shell-tests % ./not-in-list.sh
contains tests
does not contain tests
No description provided.