Skip to content

Create github action to run tests on PRs #2

Create github action to run tests on PRs

Create github action to run tests on PRs #2

Workflow file for this run

name: G2P API tests
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: gene2phenotype_api
- name: Run tests
run: |
python manage.py migrate
python manage.py test gene2phenotype_app.tests
working-directory: gene2phenotype_api/gene2phenotype_project