Skip to content

Commit ec480b8

Browse files
committed
fix ci tests
1 parent b6e58b4 commit ec480b8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
uv run alembic upgrade head
5252
uv run pytest . --cov=. --cov-report xml
5353
env:
54-
ENVIRONMENT: dev
54+
SERVICE_ENVIRONMENT: ci
5555
PYTHONDONTWRITEBYTECODE: 1
5656
PYTHONUNBUFFERED: 1
57-
DB_HOST: 127.0.0.1
57+
DB_DSN: postgresql+asyncpg://postgres:password@127.0.0.1/postgres
5858
- name: Upload coverage to Codecov
5959
uses: codecov/[email protected]
6060
env:

docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
context: .
55
dockerfile: ./Dockerfile
66
args:
7-
- ENVIRONMENT=dev
7+
- SERVICE_ENVIRONMENT=dev
88
restart: always
99
volumes:
1010
- .:/code
@@ -15,8 +15,9 @@ services:
1515
db:
1616
condition: service_healthy
1717
environment:
18-
- DEBUG=true
18+
- SERVICE_DEBUG=true
1919
- DB_ECHO=true
20+
- DB_DSN=postgresql+asyncpg://postgres:password@db/postgres
2021
command:
2122
["uv", "run", "python", "-m", "app"]
2223

0 commit comments

Comments
 (0)