Skip to content

Commit

Permalink
Check for tests to run in python-pkg.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Dec 14, 2023
1 parent 1e1c1d9 commit cb68589
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/cicd/python-pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ echo "::group::$0: Format (autopep8)"
echo '::endgroup::'

echo "::group::$0: Unit tests (pytest)"
venv/bin/python3 -m pytest .
if [ -e test ]; then
venv/bin/python3 -m pytest test
else
echo 'No tests to run'
fi
echo '::endgroup::'

echo "::group::$0: Set the right version"
Expand Down

0 comments on commit cb68589

Please sign in to comment.