Skip to content

Commit

Permalink
[DOP-11711] Run tests in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-pedchenko committed Feb 27, 2024
1 parent d8486ca commit 3afca7f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
31 changes: 22 additions & 9 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
TZ=UTC

# Postgres
POSTGRES_HOST=db
POSTGRES_HOST=127.0.0.1
POSTGRES_PORT=5432
POSTGRES_DB=syncmaster
POSTGRES_USER=user
POSTGRES_PASSWORD=secret

TEST_POSTGRES_DB=syncmaster
TEST_POSTGRES_HOST=test_postgres
TEST_POSTGRES_PASSWORD=secret
TEST_POSTGRES_PORT=5432
TEST_POSTGRES_USER=user

# RabbitMQ
RABBITMQ_HOST=rabbitmq
RABBITMQ_HOST=127.0.0.1
RABBITMQ_PORT=5672
RABBITMQ_USER=guest
RABBITMQ_PASSWORD=guest

# HDFS
HDFS_HOST=127.0.0.1
HDFS_WEBHDFS_PORT=9870
HDFS_IPC_PORT=9820

# S3
MINIO_ACCESS_KEY=syncmaster
MINIO_ROOT_USER=syncmaster
MINIO_SECRET_KEY=a2b6ad842d16f47beaa077b0e50c217a3bded54c
MINIO_ROOT_PASSWORD=a2b6ad842d16f47beaa077b0e50c217a3bded54c

TEST_S3_HOST=127.0.0.1
TEST_S3_PORT=9010
TEST_S3_ACCESS_KEY=syncmaster
TEST_S3_SECRET_KEY=a2b6ad842d16f47beaa077b0e50c217a3bded54c
TEST_S3_BUCKET=syncmaster

TEST_POSTGRES_HOST=127.0.0.1
TEST_POSTGRES_PORT=5433
TEST_POSTGRES_USER=user
Expand All @@ -29,7 +42,7 @@ TEST_ORACLE_USER=test_user
TEST_ORACLE_PASSWORD=test_password
TEST_ORACLE_SERVICE_NAME=XEPDB1

TEST_HIVE_CLUSTER=test-hive
TEST_HIVE_CLUSTER=127.0.0.1
TEST_HIVE_USER=hive_user
TEST_HIVE_PASSWORD=hive_password

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ jobs:
- name: Install dependencies
run: |
pip install "pydantic<2.0.0"
poetry add "pydantic<2.0.0"
- name: Run Tests
run: |
source .env.local
source .env.docker
mkdir -p reports/
poetry run coverage run -m pytest
Expand Down

0 comments on commit 3afca7f

Please sign in to comment.