-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (37 loc) · 1.07 KB
/
backend-checks.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
name: Backend checks
on:
pull_request:
paths:
- "backend/**/*"
- "backend/*"
- ".github/workflows/backend-checks.yml"
jobs:
check-migrations:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11.6"
- run: pip install pdm==2.10.4
- name: Cache PDM
uses: actions/cache@v4
id: cache-deps
with:
path: backend/.venv
key: pdm-${{ hashFiles('**/pdm.lock') }}-2
- name: Install python dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: pdm install
- name: Check missing not pushed migrations
run: pdm run python manage.py makemigrations --check
env:
DJANGO_SETTINGS_MODULE: pycon.settings.test
STRIPE_SECRET_API_KEY: ""
STRIPE_SUBSCRIPTION_PRICE_ID: ""
STRIPE_WEBHOOK_SIGNATURE_SECRET: ""
CELERY_BROKER_URL: ""
CELERY_RESULT_BACKEND: ""