File tree Expand file tree Collapse file tree 4 files changed +22
-14
lines changed Expand file tree Collapse file tree 4 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 61
61
- name : " Save the linting result"
62
62
run : |
63
63
echo "Nothing to save"
64
+ test-flask :
65
+ name : " Test Flask application"
66
+ needs : set-up-dependencies
67
+ runs-on : ubuntu-latest
68
+ timeout-minutes : 5
69
+ steps :
70
+ - name : " Checkout code"
71
+ uses : actions/checkout@v4
72
+
73
+ - name : " Install dependencies"
74
+ run : |
75
+ pip install pipenv
76
+ pipenv install --dev --system
77
+
78
+ - name : " Run Flask test suite"
79
+ run : |
80
+ ./test-app.sh
64
81
test-unit :
65
82
name : " Unit tests"
66
83
needs : set-up-dependencies
Original file line number Diff line number Diff line change 1
- #! /bin/bash
2
- docker compose --env-file .env.test --profile test-integration run --build integration-tests pytest -v / tests/integration
3
- test_exit_code= $?
4
- docker compose --env-file .env.test --profile test-integration down db --volumes
5
- exit $test_exit_code
1
+
2
+ pytest -vv tests/integration || {
3
+ echo " Tests failed in tests/integration "
4
+ exit 1
5
+ }
Original file line number Diff line number Diff line change 2
2
3
3
./test-setup.sh
4
4
./test-unit.sh
5
- ./test-pacts.sh
6
5
./test-integration.sh
7
- ./test-end-to-end.sh
Original file line number Diff line number Diff line change 1
- import os
2
- import sys
3
-
4
- SCRIPT_DIR = os .path .dirname (os .path .abspath (__file__ ))
5
- sys .path .insert (0 , os .path .dirname (SCRIPT_DIR ) + "/../src/functions/message_status/" )
6
- sys .path .insert (0 , os .path .dirname (SCRIPT_DIR ) + "/../src/functions/notify/" )
7
- sys .path .insert (0 , os .path .dirname (SCRIPT_DIR ) + "/../src/shared/" )
You can’t perform that action at this time.
0 commit comments