newsreader/.woodpecker/tests.yaml
Sonny Bakker ecc88a16ec
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/tests Pipeline failed
Add missing environment variables
2024-12-26 19:55:37 +01:00

31 lines
739 B
YAML

when:
- event: push
services:
- name: postgres
image: postgres:15
environment:
POSTGRES_NAME: newsreader
POSTGRES_USER: newsreader
- image: memcached:1.5.22
steps:
- name: python tests
image: python:3.11
environment:
DJANGO_SETTINGS_MODULE: "newsreader.conf.gitlab"
POSTGRES_HOST: postgres
POSTGRES_DB: newsreader
POSTGRES_NAME: newsreader
POSTGRES_USER: newsreader
commands:
- pip install uv
- uv sync --extra testing --extra ci
- ./.venv/bin/coverage run ./src/manage.py test newsreader
- ./.venv/bin/coverage report --show-missing
- name: javascript tests
image: node:lts
commands:
- npm install
- npm test