aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-11 11:47:20 +0300
committerBonfaceKilz2021-05-11 11:47:20 +0300
commit4538c0ad693ae94ebda5f0bf39678d776c0c8297 (patch)
treeef0b958a9ddcab8947635d655a3a858b84b973c8
parent232148b1304ae531df6d9157f6d574d5c944830e (diff)
downloadgenenetwork2-4538c0ad693ae94ebda5f0bf39678d776c0c8297.tar.gz
workflows: main.yml: Set up gn2 before running the unit tests
-rw-r--r--.github/workflows/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f9a3fa13..b09f2f1d 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -39,21 +39,21 @@ jobs:
mysql -u root -e "CREATE USER 'gn2'@'localhost' IDENTIFIED BY 'mysql_password';"
mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'gn2'@'localhost';FLUSH PRIVILEGES;"
- - name: Run the unit tests
+ - name: Start Genenetwork as a Background Task
run: |
- env GN2_PROFILE=/gn2-profile \
+ /gn2-profile/bin/screen -dmL bash -c "env GN2_PROFILE=/gn2-profile \
TMPDIR=/tmp SERVER_PORT=5004 \
WEBSERVER_MODE=DEBUG LOG_LEVEL=DEBUG \
GENENETWORK_FILES=/genotype_files/ bin/genenetwork2 \
- etc/default_settings.py -c -m unittest discover -v
+ etc/default_settings.py"
- - name: Start Genenetwork as a Background Task
+ - name: Run the unit tests
run: |
- /gn2-profile/bin/screen -dmL bash -c "env GN2_PROFILE=/gn2-profile \
+ env GN2_PROFILE=/gn2-profile \
TMPDIR=/tmp SERVER_PORT=5004 \
WEBSERVER_MODE=DEBUG LOG_LEVEL=DEBUG \
GENENETWORK_FILES=/genotype_files/ bin/genenetwork2 \
- etc/default_settings.py"
+ etc/default_settings.py -c -m unittest discover -v
- name: Test for Broken Links
run: |