aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorzsloan2020-09-22 16:50:07 -0500
committerzsloan2020-09-22 16:50:07 -0500
commitbb146e6d6d8fefa2f588bbaaede9867a4f132e4d (patch)
tree406ebbe6ee9b17edcce6725643171ee8c583b881 /.github
parent00cefa3d42c3e2b6633573eb124e1bcf68cea7ab (diff)
parent28b348c9956d21228d01cac6c3668e5ea7abf2e2 (diff)
downloadgenenetwork2-bb146e6d6d8fefa2f588bbaaede9867a4f132e4d.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md3
-rw-r--r--.github/workflows/main.yml31
2 files changed, 33 insertions, 1 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 789d6a57..7d7e34a5 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -26,7 +26,8 @@ If applicable, add screenshots to help explain your problem.
**Environment setup (please complete the following information):**
- OS: [e.g. Linux]
-- Racket Version [e.g. v7.6]
+- Guix Version (optional)
+- [Anything else you think is relevant]
**Additional context**
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