forked from watchdogpolska/poradnia
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.16 KB
/
web.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
name: Python package
on:
push:
branches:
- master
- dev
pull_request:
jobs:
django:
runs-on: ubuntu-latest
strategy:
matrix:
python:
# - 3.6
- "3.10"
django:
# - "==2.2.*"
- "==4.2.*"
steps:
- uses: actions/checkout@v3
# Pull the latest image to build, and avoid caching pull-only images.
# (docker pull is faster than caching in most cases.)
- run: |
docker compose --file docker-compose.yml --file docker-compose.test.yml pull
docker pull python:${{matrix.python}}-slim
- name: Start database early
run: docker compose up -d db
- name: Build application
run: make build
env:
PYTHON_VERSION: ${{ matrix.python }}
- name: Migration check
run: make check
- name: Show settings
run: make settings
- name: Run unit tests
run: make test
- name: Run e2e tests
run: make e2e
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker compose pull
- name: Build application
run: make build
- name: Build documentation
run: make docs