Skip to content

Commit

Permalink
fix: fix test for test files in package
Browse files Browse the repository at this point in the history
* this grep was verifying there was at least one non-test, *not* that
  there were no tests
  • Loading branch information
madwort committed Sep 1, 2023
1 parent 767c66e commit f848e98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ package-test type: package-build
$VENV/bin/local_run --help

# check we haven't packaged tests with it
unzip -Z -1 dist/*.whl | grep -v "^tests/"
if unzip -Z -1 dist/*.whl | grep -q "^tests"; then
echo "Built wheel contains tests!"
exit 1
fi

# clean up after ourselves
rm -rf $VENV
Expand Down

0 comments on commit f848e98

Please sign in to comment.