diff options
author | Arthur Centeno | 2021-04-09 20:38:21 +0000 |
---|---|---|
committer | Arthur Centeno | 2021-04-09 20:38:21 +0000 |
commit | e2b04a322f26670782fe7f7c39bcebc508fdabdd (patch) | |
tree | a51c32bae4d544cc0beea19f455ccc52f0544a4c /.github | |
parent | 187cd40bd3273b50d2813bfccf98bfadbb8c14ff (diff) | |
parent | ef51e08753defdfc7f3e67f8788cd1362d2cf631 (diff) | |
download | genenetwork2-e2b04a322f26670782fe7f7c39bcebc508fdabdd.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into acenteno
Diffstat (limited to '.github')
-rw-r--r-- | .github/ISSUE_TEMPLATE/bug_report.md | 28 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/feature_request.md | 30 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/user_story.md | 12 | ||||
-rw-r--r-- | .github/PULL_REQUEST_TEMPLATE.md | 17 | ||||
-rw-r--r-- | .github/workflows/main.yml | 66 |
5 files changed, 153 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..af60c290 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,28 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '[Bug] Bug Title' +labels: '' +assignees: '' + +--- + +**Describe the bug** +<!-- A clear and concise description of what the bug is. --> + +**To Reproduce** +<!-- Steps to reproduce the behavior --> + +**Expected behavior** +<!-- A clear and concise description of what you expected to happen. --> + +**Screenshots** +<!-- If applicable, add screenshots to help explain your problem. --> + +**Environment setup (please complete the following information):** +<!-- - OS: [e.g. Linux] --> +<!-- - Guix Version (optional) --> +<!-- - [Anything else you think is relevant] --> + +**Additional context** +<!-- Add any other context about the problem here. --> diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..813974c1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,30 @@ +--- +name: Feature request +about: Suggest a new feature for this project(Very Specific) +title: '[Feature] My-cool-feature' +labels: '' +assignees: '' + +--- + +## Is your feature request related to a problem? Please describe. +<!-- A clear and concise description of what the problem is. --> +<!-- Example: I'm always frustrated when [...] --> + +## Describe the solution you'd like +<!-- A clear and concise description of what you want to happen. --> + +## Describe alternatives you've considered +<!-- A clear and concise description of any alternative solutions or features you've considered. --> + +## User Stories (optional) +<!-- Example: --> +<!-- As a _[role or persona]_, I want _[goal/ need]_ so that _[why]_ --> +<!-- **Feature:** _[Brief description of feature]_ --> +<!-- _[Any additional descriptions on feature]_ --> +<!-- **Scenario:** +Please use _[Gherkin](https://cucumber.io/docs/gherkin/reference/)_ +here --> + +## Additional context +<!-- Add any other context or screenshots about the feature request here. --> diff --git a/.github/ISSUE_TEMPLATE/user_story.md b/.github/ISSUE_TEMPLATE/user_story.md new file mode 100644 index 00000000..d46976ba --- /dev/null +++ b/.github/ISSUE_TEMPLATE/user_story.md @@ -0,0 +1,12 @@ +--- +name: User Story +about: Suggest an idea for this project +title: ['Feature] My-cool-new-feature' +labels: '' +assignees: '' + +--- +<!-- As a _[role or persona]_, I want _[goal/ need]_ so that _[why]_ --> +<!-- **Feature:** _[Brief description of feature]_ --> +<!-- _[Any additional descriptions on feature]_ --> +<!-- **Scenario:** Please use _[Gherkin](https://cucumber.io/docs/gherkin/reference/)_ here --> diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..926b0548 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,17 @@ +#### Description +<!--Brief description of the PR. What does this PR do? --> + +#### How should this be tested? +<!-- What should you do to test this PR? Is there any manual quality +assurance checks that should be done. What are the expectations --> + +#### Any background context you want to provide? +<!-- Anything the reviewer should be aware of ahead of testing --> + +#### What are the relevant pivotal tracker stories? +<!-- Does this PR track anything anywhere? --> + +#### Screenshots (if appropriate) + +#### Questions +<!-- Are there any questions for the reviewer --> diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..a36abc0a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,66 @@ +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/python3-genenetwork2:ad741c1 + + 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 6379 + - name: Start Redis + run: | + /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: | + 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 + + - name: Start Genenetwork as a Background Task + 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& + + - 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 + |