-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
0cc47be
commit e382604
Showing
1 changed file
with
40 additions
and
0 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: Biothings Annotator Tests | ||
|
||
on: | ||
push: {} | ||
pull_request: | ||
branches: | ||
- add-github-action-for-testing | ||
|
||
jobs: | ||
run_user_geneset_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | ||
steps: | ||
- name: Checkout biothings_annotator source | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: pip install --upgrade pip | ||
- name: Install PyTest | ||
run: pip install pytest | ||
- name: Install Sanic | ||
run: pip install sanic | ||
- name: Install biothings_client | ||
run: pip install biothings_client | ||
- name: Install brotli | ||
run: pip install brotli | ||
- name: Install sanic_testing | ||
run: pip install sanic_testing | ||
- name: Run Tests | ||
run: pytest tests | ||
working-directory: src | ||
- name: Setup tmate debug session on failure | ||
if: ${{ failure() }} | ||
uses: mxschmitt/action-tmate@v3 |