-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,15 +45,16 @@ jobs: | |
working-directory: ./apps/dashboard_app | ||
run: | | ||
cp .env.dev .env | ||
sed -i 's/DB_HOST=.*/DB_HOST=db/' .env | ||
sed -i 's/DB_HOST=.*/DB_HOST=127.0.0.1/' .env | ||
sed -i 's/DB_PORT=.*/DB_PORT=5432/' .env | ||
sed -i 's/DB_USER=.*/DB_USER=postgres/' .env | ||
sed -i 's/DB_PASSWORD=.*/DB_PASSWORD=password/' .env | ||
sed -i 's/DB_NAME=.*/DB_NAME=data_handler/' .env | ||
- name: Add DATABASE_URL to Environment | ||
working-directory: ./apps/data_handler | ||
run: cp .env.dev .env | ||
working-directory: ./apps/dashboard_app | ||
run: | | ||
echo "DATABASE_URL=postgresql://postgres:[email protected]:5432/data_handler" >> $GITHUB_ENV | ||
- name: Wait for Database to be Ready | ||
run: | | ||
|
@@ -68,3 +69,4 @@ jobs: | |
- name: Run Tests for Dashboard_App | ||
working-directory: ./apps/dashboard_app | ||
run: poetry run pytest | ||
|