aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
diff options
context:
space:
mode:
authorArthur Centeno2021-06-15 15:33:59 +0000
committerArthur Centeno2021-06-15 15:33:59 +0000
commitc1a6ca69f7c48d99b6c5d62e56a445583fd4c08b (patch)
treef98fccc44829e3f52e585d6b41a1942aa52bd8b7 /.github/workflows/main.yml
parent7e49c006af9c4f7453c3578a7d4f1fc4d7bdf3ed (diff)
parent9e9e0e4d440383f617542e810a1115833eafd7bf (diff)
downloadgenenetwork2-c1a6ca69f7c48d99b6c5d62e56a445583fd4c08b.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into acenteno
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r--.github/workflows/main.yml19
1 files changed, 9 insertions, 10 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index a36abc0a..f279a7e5 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -11,7 +11,7 @@ on:
jobs:
unittest:
runs-on: ubuntu-latest
- container: bonfacekilz/python3-genenetwork2:ad741c1
+ container: bonfacekilz/genenetwork2:latest
steps:
# First start with mariadb set then checkout. The checkout gives
@@ -31,7 +31,7 @@ jobs:
run: |
/gn2-profile/bin/screen -dmLS redisconn /gn2-profile/bin/redis-server
- # Redis is required by some of the tests 6379
+ # Initialise the tables
- name: Bootstrap tables
run: |
mysql -u root -e "SHOW DATABASES;"
@@ -39,28 +39,27 @@ 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 -dm 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: |
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: |
-
env GN2_PROFILE=/gn2-profile \
TMPDIR=/tmp\
WEBSERVER_MODE=DEBUG LOG_LEVEL=DEBUG \
GENENETWORK_FILES=/genotype_files/ bin/genenetwork2 \
- etc/default_settings.py -c /__w/genenetwork2/genenetwork2/test/requests/links_scraper/genelinks.py
-
+ etc/default_settings.py -c \
+ $PWD/test/requests/links_scraper/genelinks.py