generated from commonknowledge/groundwork-starter-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.36 KB
/
pull-request.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
name: pull-request
on:
pull_request:
branches:
- main
jobs:
lint-and-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/commonknowledge/do-app-baseimage-django-node:364385f9d196a2bbe2d5faea025520cc0316501f
# Workaround for: https://github.com/actions/checkout/issues/211
options: --user 1001
volumes:
- "/home/runner/docker/.cache:/home/app/.cache"
env:
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
DEBUG: True
PY_IGNORE_IMPORTMISMATCH: 1
STRIPE_LIVE_MODE: "False"
STRIPE_TEST_PUBLIC_KEY: ${{ secrets.STRIPE_TEST_PUBLIC_KEY }}
STRIPE_TEST_SECRET_KEY: ${{ secrets.STRIPE_TEST_SECRET_KEY }}
services:
db:
image: kartoza/postgis:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DBNAME: postgres
POSTGRES_HOSTNAME: postgres
POSTGRES_PORT: 5432
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /home/runner/docker/.cache/poetry
key: do-app-baseimage-django-node:364385f9d196a2bbe2d5faea025520cc0316501f-poetry-${{ hashFiles('poetry.lock') }}
- run: |
python -m pip install --upgrade pip
pip install poetry
poetry self update
- run: make install
- run: make ci