aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorzsloan2020-10-08 14:34:23 -0500
committerzsloan2020-10-08 14:34:23 -0500
commit46232706289575e1798442f3a763aaf1407ec6fa (patch)
treec4c383ce09efd240f279f5bc6564eebdcf583169 /.github
parent04a2cb3fd909598b4c51baa63229f8609aa90999 (diff)
parent4f47ebdac92a4255c9a12aa7235affc777114268 (diff)
downloadgenenetwork2-46232706289575e1798442f3a763aaf1407ec6fa.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml27
1 files changed, 22 insertions, 5 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4c8db1c4..2fd9a886 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -14,18 +14,35 @@ jobs:
container: bonfacekilz/python2-genenetwork2:latest
steps:
+ # First start with mariadb set then checkout. The checkout gives
+ # the mysqld enough time to start
+ - name: Set up mariadb
+ run: |
+ mysql_install_db --user=mysql --datadir=/usr/local/mysql
+ # Wait for the mysqld_safe process to start
+ mysqld_safe --user=mysql --datadir=/usr/local/mysql &
+
# Use v1 of checkout since v2 fails
- name: Checkout Project
uses: actions/checkout@v1
- # Redis is required by some of the tests
+ # Redis is required by some of the tests 6379
- name: Start Redis
run: |
- redis-server --daemonize yes
+ /gn2-profile/bin/screen -dmLS redisconn /gn2-profile/bin/redis-server
+
+ # Redis is required by some of the tests 6379
+ - name: Bootstrap tables
+ run: |
+ mysql -u root -e "SHOW DATABASES;"
+ mysql -u root -e "CREATE DATABASE db_webqtl_s;"
+ 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
run: |
- mkdir -p /genotype_files/genotype/json
- env GN2_PROFILE=/usr/gn2-profile TMPDIR=/tmp SERVER_PORT=5004 \
- GENENETWORK_FILES=/genotype_files/ bash bin/genenetwork2 \
+ 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