File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 7272 runs-on : ubuntu-latest
7373 needs : lint # This ensures tests only run after linting passes
7474
75+ services :
76+ postgres :
77+ image : pgvector/pgvector:pg15
78+ env :
79+ POSTGRES_USER : postgres
80+ POSTGRES_PASSWORD : password
81+ POSTGRES_DB : app_test
82+ ports :
83+ - 5432:5432
84+ options : >-
85+ --health-cmd pg_isready
86+ --health-interval 10s
87+ --health-timeout 5s
88+ --health-retries 5
89+
7590 steps :
7691 - name : Checkout code
7792 uses : actions/checkout@v4
@@ -98,6 +113,14 @@ jobs:
98113 run : poetry install --no-interaction
99114
100115 - name : Run tests with coverage
116+ env :
117+ POSTGRES_SERVER : localhost
118+ POSTGRES_USER : postgres
119+ POSTGRES_PASSWORD : password
120+ POSTGRES_DB : app_test
121+ ENVIRONMENT : testing
122+ JWT_SECRET_KEY : testing_secret_key_change_me_in_prod_12345
123+ API_KEY_SECRET : testing_api_key_secret_change_me_12345
101124 run : |
102125 poetry run pytest -v --cov=app --cov-report=xml --cov-report=term-missing
103126 if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments