forked from wagtail/guide
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.29 KB
/
Copy pathci.yml
File metadata and controls
49 lines (44 loc) · 1.29 KB
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
name: CI
on:
push:
branches:
- main
- 'renovate/**'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: apps.guide.settings.test
DATABASE_URL: postgres://postgres:postgres@localhost/postgres # pragma: allowlist secret
SECRET_KEY: iamnotsosecret
ALLOWED_HOSTS: localhost
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres # pragma: allowlist secret
POSTGRES_DB: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build
- run: npm run lint
- run: pipx install "poetry>=2.2.1,<3"
- uses: actions/setup-python@v5
with:
python-version: '3.14'
cache: poetry
- run: poetry install --no-root
- run: make lint-backend
- run: poetry run python manage.py check
- run: poetry run python manage.py createcachetable
- run: poetry run python manage.py makemigrations --check
- run: make test-coverage