-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove pg in tests, use sqlite instead
This will really solve the issue of external contributors tests failing, and is simpler.
- Loading branch information
1 parent
67bdb14
commit a40dc64
Showing
3 changed files
with
0 additions
and
56 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
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 |
---|---|---|
|
@@ -16,22 +16,6 @@ jobs: | |
backend-directory: ./backend | ||
working-directory: ./frontend | ||
|
||
services: | ||
postgres: | ||
image: postgres:14.1 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} | ||
POSTGRES_DB: postgres | ||
ports: ["5432:5432"] | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
mailhog: | ||
image: mailhog/mailhog | ||
ports: [ | ||
"1025:1025", | ||
"8025:8025" | ||
] | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
|
@@ -68,13 +52,8 @@ jobs: | |
working-directory: ${{ env.backend-directory }} | ||
run: | | ||
touch .env | ||
echo DJANGO_SECRET_KEY=${{ secrets.DJANGO_SECRET_KEY }} >> .env | ||
echo [email protected] >> .env | ||
echo DJANGO_SUPERUSER_PASSWORD=1234 >> .env | ||
echo POSTGRES_NAME=postgres >> .env | ||
echo POSTGRES_USER=postgres >> .env | ||
echo POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} >> .env | ||
echo DB_HOST=localhost >> .env | ||
echo CISO_ASSISTANT_SUPERUSER_EMAIL='' >> .env | ||
echo CISO_ASSISTANT_URL=http://localhost:4173 >> .env | ||
echo DEFAULT_FROM_EMAIL='[email protected]' >> .env | ||
|
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 |
---|---|---|
|
@@ -13,16 +13,6 @@ jobs: | |
startup-functional-test: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
image: postgres:14.1 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
ports: ["5432:5432"] | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
|
@@ -60,13 +50,8 @@ jobs: | |
working-directory: ${{ env.backend-directory }} | ||
run: | | ||
touch .env | ||
echo DJANGO_SECRET_KEY=${{ secrets.DJANGO_SECRET_KEY }} >> .env | ||
echo [email protected] >> .env | ||
echo DJANGO_SUPERUSER_PASSWORD=1234 >> .env | ||
echo POSTGRES_NAME=postgres >> .env | ||
echo POSTGRES_USER=postgres >> .env | ||
echo POSTGRES_PASSWORD=postgres >> .env | ||
echo DB_HOST=localhost >> .env | ||
echo CISO_ASSISTANT_SUPERUSER_EMAIL='' >> .env | ||
echo CISO_ASSISTANT_URL=http://localhost:4173 >> .env | ||
- name: Run migrations | ||
|
@@ -114,7 +99,6 @@ jobs: | |
working-directory: ${{ env.backend-directory }} | ||
run: | | ||
touch .env | ||
echo DJANGO_SECRET_KEY=${{ secrets.DJANGO_SECRET_KEY }} >> .env | ||
export $(grep -v '^#' .env | xargs) | ||
- name: Config the Docker app | ||
run: | | ||
|