Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
|
86060740d8 | ||
|
55aed5f346 | ||
|
571918ec15 | ||
|
6b36ccc87a | ||
|
0633b3efe9 |
2 changed files with 14 additions and 1 deletions
13
.drone.yml
13
.drone.yml
|
@ -3,6 +3,19 @@ type: docker
|
|||
name: build-latest
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: python:3.12-slim-bookworm
|
||||
settings:
|
||||
repo: git.thisfro.ch/pflaenz.li/pflaenzli
|
||||
environment:
|
||||
DJANGO_ALLOWED_HOSTS: localhost,[::1]
|
||||
DJANGO_CSRF_TRUSTED_ORIGINS: http://localhost:8000
|
||||
commands:
|
||||
- pip install coverage
|
||||
- pip install -r requirements.txt
|
||||
- coverage run --branch --source='.' pflaenzli/manage.py test pflaenzli
|
||||
- coverage report -m
|
||||
|
||||
- name: build-image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.11-slim-bullseye
|
||||
FROM python:3.12-slim-bookworm
|
||||
|
||||
RUN apt update && apt install -y libpq-dev nginx gettext
|
||||
|
||||
|
|
Loading…
Reference in a new issue