diff options
author | BonfaceKilz | 2020-09-22 04:27:43 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-09-22 04:27:43 +0300 |
commit | f184e2b4762d1ec5608d600dcb87406679212e39 (patch) | |
tree | a47b0faa824a81f2efaff6e639ba0245930b3b1d /.github/workflows | |
parent | 125c75b724350dd750b8633410d4b9b3841ce984 (diff) | |
download | genenetwork2-f184e2b4762d1ec5608d600dcb87406679212e39.tar.gz |
Add unittesting github action
* .github/workflows/main.yml: Add it.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/main.yml | 31 |
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 |