Skip to content

Commit 5441e01

Browse files
committed
Fix for CI tests
1 parent 7b5bc97 commit 5441e01

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/unit-tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,22 @@ jobs:
1515
postgres:
1616
image: postgres:15-alpine
1717
env:
18-
POSTGRES_USER: postgres
19-
POSTGRES_PASSWORD: postgres
18+
POSTGRES_USER: a2a
19+
POSTGRES_PASSWORD: a2a_password
20+
POSTGRES_DB: a2a_test
2021
ports:
2122
- 5432:5432
22-
volumes:
23-
- ${{ github.workspace }}/tests/docker/postgres:/docker-entrypoint-initdb.d
23+
options: >-
24+
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2425
mysql:
2526
image: mysql:8.0
2627
env:
2728
MYSQL_ROOT_PASSWORD: root
29+
MYSQL_DATABASE: a2a_test
30+
MYSQL_USER: a2a
31+
MYSQL_PASSWORD: a2a_password
2832
ports:
2933
- 3306:3306
30-
volumes:
31-
- ${{ github.workspace }}/tests/docker/mysql:/docker-entrypoint-initdb.d
3234
options: >-
3335
--health-cmd="mysqladmin ping -h localhost -u root -proot" --health-interval=10s --health-timeout=5s --health-retries=5
3436
@@ -42,7 +44,7 @@ jobs:
4244
uses: actions/setup-python@v5
4345
with:
4446
python-version: ${{ matrix.python-version }}
45-
- name: Set up databases for tests
47+
- name: Set up test environment variables
4648
run: |
4749
echo "POSTGRES_TEST_DSN=postgresql+asyncpg://a2a:a2a_password@localhost:5432/a2a_test" >> $GITHUB_ENV
4850
echo "MYSQL_TEST_DSN=mysql+aiomysql://a2a:a2a_password@localhost:3306/a2a_test" >> $GITHUB_ENV

0 commit comments

Comments
 (0)