-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
395 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: App Tests | ||
|
||
on: | ||
push: {} | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run_app_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.6, 3.7, 3.8, 3.9 ] | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: pip install --upgrade pip | ||
- name: Install dependencies | ||
run: pip install -r requirements_web.txt | ||
- name: Install PyTest | ||
run: pip install pytest | ||
- name: Install BioThings 0.10.x branch # FIXME | ||
run: pip install git+https://github.com/biothings/biothings.api.git@0.10.x#egg=biothings | ||
- name: Run App Tests | ||
run: pytest test_apptests.py | ||
working-directory: src/tests | ||
services: | ||
Elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.3 | ||
env: | ||
"discovery.type" : single-node | ||
ports: | ||
- 9200:9200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# MyChem.info API | ||
[![App Tests](https://github.com/biothings/mychem.info/actions/workflows/app_tests.yml/badge.svg)](https://github.com/biothings/mychem.info/actions/workflows/app_tests.yml) | ||
|
||
[MyChem.info](https://mychem.info) provides a high-performance API for up-to-date annotations/knowledge about individual chemicals and drugs. It's part of [BioThings API](http://biothings.io) collection, together with [MyGene.info](https://mygene.info), [MyVariant.info](https://myvariant.info) and [more](https://biothings.io/). |
Oops, something went wrong.