-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (60 loc) · 1.82 KB
/
code-verification.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Quality Assurance
on:
pull_request:
workflow_call:
secrets:
SECRET_KEY:
required: true
ALLOWED_HOSTS:
required: true
CORS_ALLOWED_ORIGINS:
required: true
DB_USER:
required: true
DB_PASSWORD:
required: true
DB_NAME:
required: true
DB_HOST:
required: true
DB_HOST_TEST:
required: true
CELERY_BROKER_URL:
required: true
DEBUG:
required: true
jobs:
quality-assurance:
name: Quality Assurance
runs-on: ubuntu-20.04
container: python:3.10-slim-buster
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ALLOWED_HOSTS: ${{ secrets.ALLOWED_HOSTS }}
CORS_ALLOWED_ORIGINS: ${{ secrets.CORS_ALLOWED_ORIGINS }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_HOST_TEST: ${{ secrets.DB_HOST_TEST }}
CELERY_BROKER_URL: ${{ secrets.CELERY_BROKER_URL }}
DEBUG: ${{ secrets.DEBUG }}
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: ${{ secrets.DB_USER }}
POSTGRES_PASSWORD: ${{ secrets.DB_PASSWORD }}
POSTGRES_DB: ${{ secrets.DB_NAME }}
steps:
- uses: actions/checkout@v3
- name: Install necessary tools
run: apt-get update && apt-get install -y make
- name: Install Dependencies
run: make install
- name: Lint
run: make lint
- name: Test
run: make test
env:
MOVIEMATE_SETTING_DATABASES: '{"default":{"ENGINE":"django.db.backends.postgresql", "PORT": 5432, "NAME":"${{ secrets.DB_NAME }}", "HOST":"${{ secrets.DB_HOST_TEST }}", "USER":"${{ secrets.DB_USER }}", "PASSWORD":"${{ secrets.DB_PASSWORD }}"}}'