Skip to content

Commit

Permalink
Add github action for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Aug 12, 2024
1 parent 0cc47be commit e382604
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/biothings_annotator_tests.yml
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

0 comments on commit e382604

Please sign in to comment.