Skip to content

Commit

Permalink
fix: add change [[ if CI ]] then use local python
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdelorenzo committed Oct 20, 2024
1 parent 7520871 commit fbc4ef8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ APP="${DIR}"/../src

run_unit_tests ()
{
echo "${GITHUB_ACTION}"

if [[ -n "${GITHUB_ACTION}" ]] && [[ "${GITHUB_ACTION}" == "true" ]]; then
echo "Running Github Action Unit Tests"
python -m unittest discover ${APP}
else
echo "Running Local Unit Tests"
"${PY}"/bin/python -m unittest discover ${APP}
fi
}
Expand Down

0 comments on commit fbc4ef8

Please sign in to comment.