Skip to content

Commit

Permalink
New python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailprivalov committed Jun 19, 2021
1 parent 7735230 commit a851892
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
File renamed without changes.
46 changes: 46 additions & 0 deletions .github/workflows/python39-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Django testing

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

jobs:
build:
runs-on: ubuntu-latest
env:
SECRET_KEY: 'COMMIT_${SHORT_SHA}'

services:
postgres:
image: postgres:11
env:
POSTGRES_DB: l2
POSTGRES_PASSWORD: 123456
POSTGRES_USER: postgres
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-tests.txt
- name: Migrate
run: |
python manage.py migrate
- name: Make migrations
run: |
python manage.py makemigrations
- name: Migrate
run: |
python manage.py migrate
- name: Run Tests
run: |
python manage.py test

0 comments on commit a851892

Please sign in to comment.