Skip to content

Commit

Permalink
split unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamez committed Nov 13, 2023
1 parent 12c51e7 commit 40fcbeb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
run: |
scripts/lint-tests.sh
- name: Run unit tests
- name: Unit tests - API
run: |
scripts/api-tests.sh
scripts/api-tests.sh --folder api
- name: Unit tests - Python Functions
run: |
scripts/api-tests.sh --folder functions-python
5 changes: 5 additions & 0 deletions scripts/api-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ execute_tests() {
venv/bin/python -m pip install -r requirements.txt >/dev/null
venv/bin/python -m pip install -r requirements_dev.txt >/dev/null
venv/bin/python -m pytest tests
# Fail if tests fail
if [ $? -ne 0 ]; then
printf "\nTests failed in $1\n"
exit 1
fi
printf "\n"
}

Expand Down

0 comments on commit 40fcbeb

Please sign in to comment.