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 fbc4ef8 commit 44a264c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:

- name: Run Tests
run: |
echo "Running unit tests..."
echo "Running all unit tests..."
bash test/run_tests.sh -u
6 changes: 3 additions & 3 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ APP="${DIR}"/../src

run_unit_tests ()
{
echo "${GITHUB_ACTION}"

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

0 comments on commit 44a264c

Please sign in to comment.