Skip to content

Commit

Permalink
Merge branch 'develop' into feature/evagram_input_testing
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonzhu09 authored Apr 19, 2024
2 parents 2c3618c + bd2833a commit 5f503a3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test_django_api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test Database Tool
on:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: ${{secrets.DB_NAME}}
POSTGRES_USER: ${{secrets.DB_USER}}
POSTGRES_PASSWORD: ${{secrets.DB_PASSWORD}}
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install . -r requirements.txt
- name: Run Django Model Tests
env:
DB_PASSWORD: ${{secrets.DB_PASSWORD}}
run: python ./src/evagram/website/backend/manage.py test api

0 comments on commit 5f503a3

Please sign in to comment.