Skip to content

upd base

upd base #5

Workflow file for this run

## name of our workflow
#name: Django CI/CD Workflow
#
## triggers for our workflow
#on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
#
#jobs:
# build:
# runs-on: ubuntu-latest
# services:
# postgres_main:
# image: postgres:12
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: djtesting
# ports:
# - 5432:5432
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Set up Python 3.6
# uses: actions/setup-python@v2
# with:
# python-version: 3.6
# - name: Install requirements
# run: pip install -r requirements.txt
# - name: Run Tests
# env:
# DJANGO_SECRET_KEY: CI_CD_TEST_KEY
# POSTGRES_DB: djtesting
# POSTGRES_HOST: localhost
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# POSTGRES_PORT: 5432
# DEBUG: "0"
# run: |
# python manage.py test