boost-dx-tutorial/.woodpecker/workflow.yaml

19 lines
452 B
YAML
Raw Normal View History

when:
- event: push
branch: main
steps:
- name: lint-and-test
2024-11-21 20:08:00 +01:00
image: python:3.12-buster
environment:
PYTHONDEVMODE: 1
DJANGO_SETTINGS_MODULE: dx.settings
DJANGO_CONFIGURATION: Dev
commands:
- python -m venv venv
- /bin/bash -c "source venv/bin/activate"
- python -m pip install --upgrade pip
- python -m pip install -r requirements/test.txt
- ruff check src
- python -m pytest