Skip to content

Commit 82d1313

Browse files
authored
Merge pull request Azure-Samples#11 from Azure-Samples/readme
Fix tests workflow
2 parents 7ed317c + 59824f3 commit 82d1313

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.devcontainer/docker-compose.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ services:
2424
- postgres-data:/var/lib/postgresql/data
2525
environment:
2626
POSTGRES_DB: postgres
27-
POSTGRES_USER: admin
28-
POSTGRES_PASSWORD: LocalPasswordOnly
27+
POSTGRES_USER: postgres
28+
POSTGRES_PASSWORD: postgres
2929

3030
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
3131
# (Adding the "ports" property to this file will not forward from a Codespace.)
3232

3333
volumes:
34-
postgres-data:
34+
postgres-data:

.env.sample

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Use these values to connect to the local database from within the devcontainer
22
POSTGRES_HOST=localhost
3-
POSTGRES_USERNAME=admin
4-
POSTGRES_PASSWORD=LocalPasswordOnly
3+
POSTGRES_USERNAME=postgres
4+
POSTGRES_PASSWORD=postgres
55
POSTGRES_DATABASE=postgres
66
POSTGRES_SSL=disable
77

.github/workflows/app-tests.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: ["ubuntu-20.04"]
17-
python_version: ["3.9", "3.10", "3.11", "3.12"]
17+
python_version: ["3.10", "3.11", "3.12"]
1818
services:
1919
postgres:
2020
image: pgvector/pgvector:pg16
@@ -38,6 +38,7 @@ jobs:
3838
run: |
3939
python -m pip install -e src
4040
- name: Setup local database with seed data
41+
run: |
4142
cp .env.sample .env
4243
python ./src/fastapi_app/setup_postgres_database.py
4344
python ./src/fastapi_app/setup_postgres_seeddata.py

.vscode/settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"driver": "PostgreSQL",
88
"name": "local",
99
"database": "postgres",
10-
"username": "admin",
11-
"password": "LocalPasswordOnly"
10+
"username": "postgres",
11+
"password": "postgres"
1212
},
1313
{
1414
"name": "Azure database",

0 commit comments

Comments
 (0)