Skip to content

Commit

Permalink
new branch name added to django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mathis2003 authored Mar 3, 2024
1 parent b5f37a3 commit d8b1228
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,29 @@ name: Django CI

on:
push:
branches: [ "develop" ]
branches: [ "testing" ]
pull_request:
branches: [ "develop" ]
branches: [ "testing" ]

jobs:
build:

runs-on: ubuntu-latest

services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: github_actions

ports:
- 5433:5432

options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5


steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
Expand All @@ -22,5 +36,14 @@ jobs:
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_ENGINE: ${{secrets.DB_ENGINE}}

run: |
python manage.py test

0 comments on commit d8b1228

Please sign in to comment.