mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-13 02:15:59 +00:00
fix test env
This commit is contained in:
parent
d765a003ac
commit
170cb8b6f9
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
run: |
|
||||
git clone --depth=1 --branch=master https://github.com/haiwen/seafile-test-deploy /tmp/seafile-test-deploy
|
||||
cd /tmp/seafile-test-deploy && git fetch origin master:master && git checkout master
|
||||
export JWT_PRIVATE_KEY=qwertyuiop SITE_ROOT=/
|
||||
export JWT_PRIVATE_KEY=qwertyuiop SITE_ROOT=/ SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub
|
||||
./bootstrap.sh
|
||||
|
||||
- name: pip install
|
||||
@ -42,7 +42,7 @@ jobs:
|
||||
- name: run pytest
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
export CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data TRAVIS=1
|
||||
export CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data TRAVIS=1 SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub
|
||||
if ./tests/test_seahub_changes.sh; then ./tests/seahubtests.sh init && ./tests/seahubtests.sh runserver && ./tests/seahubtests.sh test; else true; fi
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
|
Loading…
Reference in New Issue
Block a user