-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 902 Bytes
/
pr.yml
File metadata and controls
37 lines (30 loc) · 902 Bytes
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
name: Quality Assurance
on: [push]
jobs:
quality-assurance:
name: Quality Assurance
runs-on: ubuntu-latest
container: python:3.12-bookworm
services:
db:
image: postgres:14.2-alpine
env:
POSTGRES_DB: blogapi
POSTGRES_USER: blogapi
POSTGRES_PASSWORD: blogapi
redis:
image: redis:7.2.6-alpine
steps:
- uses: actions/checkout@v2
- name: Install Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.8.3
- name: Install Dependencies
run: make install
- name: Test
run: make test
env:
BLOGAPI_SETTING_DATABASES: '{"default":{"HOST":"db"}}'
BLOGAPI_SETTING_LOCAL_SETTINGS_PATH: "blogapi/project/settings/templates/settings.github.py"
BLOGAPI_SETTING_RQ_QUEUES: '{"default": { "HOST": "redis"}}'