aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBonfaceKilz2020-09-22 14:28:32 +0300
committerGitHub2020-09-22 14:28:32 +0300
commit28b348c9956d21228d01cac6c3668e5ea7abf2e2 (patch)
treea1bea7151c1263003e67b53472f04312331beabd /.github/workflows
parent0fd23995fa21c32c2a6005b2fd70b0bd99d13214 (diff)
parent564b235bdc518a3ed91ca506ad2ac93d5bc91eef (diff)
downloadgenenetwork2-28b348c9956d21228d01cac6c3668e5ea7abf2e2.tar.gz
Merge pull request #445 from BonfaceKilz/buid/add-ci
Buid/add ci
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..4c8db1c4
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,31 @@
+name: tests
+
+# Run actions when pushing to the testing branch or when you create a
+# PR against it
+on:
+ push:
+ branches: [ testing ]
+ pull_request:
+ branches: [ testing ]
+
+jobs:
+ unittest:
+ runs-on: ubuntu-latest
+ container: bonfacekilz/python2-genenetwork2:latest
+
+ steps:
+ # Use v1 of checkout since v2 fails
+ - name: Checkout Project
+ uses: actions/checkout@v1
+
+ # Redis is required by some of the tests
+ - name: Start Redis
+ run: |
+ redis-server --daemonize yes
+
+ - 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 \
+ etc/default_settings.py -c -m unittest discover -v