Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
f561e942
"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "83e8db9b6a8fb3728c083cc500fb94c7da62a965"
Commit
f561e942
authored
Apr 28, 2024
by
Jun Siang Cheah
Browse files
fix: refactor db migration tests
parent
eed6c719
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
.github/workflows/integration-test.yml
.github/workflows/integration-test.yml
+14
-5
No files found.
.github/workflows/integration-test.yml
View file @
f561e942
...
@@ -106,9 +106,12 @@ jobs:
...
@@ -106,9 +106,12 @@ jobs:
-
name
:
Test backend with SQLite
-
name
:
Test backend with SQLite
id
:
sqlite
id
:
sqlite
env
:
WEBUI_SECRET_KEY
:
secret-key
GLOBAL_LOG_LEVEL
:
debug
run
:
|
run
:
|
cd backend
cd backend
WEBUI_SECRET_KEY=secret-key GLOBAL_LOG_LEVEL=debug
uvicorn main:app --port "8080" --forwarded-allow-ips '*' &
uvicorn main:app --port "8080" --forwarded-allow-ips '*' &
UVICORN_PID=$!
UVICORN_PID=$!
# Wait up to 20 seconds for the server to start
# Wait up to 20 seconds for the server to start
for i in {1..20}; do
for i in {1..20}; do
...
@@ -130,10 +133,13 @@ jobs:
...
@@ -130,10 +133,13 @@ jobs:
-
name
:
Test backend with Postgres
-
name
:
Test backend with Postgres
if
:
success() || steps.sqlite.conclusion == 'failure'
if
:
success() || steps.sqlite.conclusion == 'failure'
env
:
WEBUI_SECRET_KEY
:
secret-key
GLOBAL_LOG_LEVEL
:
debug
DATABASE_URL
:
postgresql://postgres:postgres@localhost:5432/postgres
run
:
|
run
:
|
cd backend
cd backend
export DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
uvicorn main:app --port "8081" --forwarded-allow-ips '*' &
WEBUI_SECRET_KEY=secret-key GLOBAL_LOG_LEVEL=debug uvicorn main:app --port "8081" --forwarded-allow-ips '*' &
UVICORN_PID=$!
UVICORN_PID=$!
# Wait up to 20 seconds for the server to start
# Wait up to 20 seconds for the server to start
for i in {1..20}; do
for i in {1..20}; do
...
@@ -154,10 +160,13 @@ jobs:
...
@@ -154,10 +160,13 @@ jobs:
# - name: Test backend with MySQL
# - name: Test backend with MySQL
# if: success() || steps.sqlite.conclusion == 'failure' || steps.postgres.conclusion == 'failure'
# if: success() || steps.sqlite.conclusion == 'failure' || steps.postgres.conclusion == 'failure'
# env:
# WEBUI_SECRET_KEY: secret-key
# GLOBAL_LOG_LEVEL: debug
# DATABASE_URL: mysql://root:mysql@localhost:3306/mysql
# run: |
# run: |
# cd backend
# cd backend
# export DATABASE_URL=mysql://root:mysql@localhost:3306/mysql
# uvicorn main:app --port "8083" --forwarded-allow-ips '*' &
# WEBUI_SECRET_KEY=secret-key GLOBAL_LOG_LEVEL=debug uvicorn main:app --port "8083" --forwarded-allow-ips '*' &
# UVICORN_PID=$!
# UVICORN_PID=$!
# # Wait up to 20 seconds for the server to start
# # Wait up to 20 seconds for the server to start
# for i in {1..20}; do
# for i in {1..20}; do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment