[ci] use a pythonic image
Some checks failed
ci/woodpecker/push/workflow Pipeline failed

inspired by
https://codeberg.org/Codeberg-CI/examples/src/branch/main/Python/.woodpecker/code-quality.yaml
This commit is contained in:
bronsen 2024-11-21 20:07:14 +01:00
parent e70af2376b
commit 93df0d75d5

View file

@ -4,8 +4,15 @@ when:
steps: steps:
- name: lint-and-test - name: lint-and-test
image: debian image: python:3.13-buster
environment:
PYTHONDEVMODE: 1
DJANGO_SETTINGS_MODULE: dx.settings
DJANGO_CONFIGURATION: Dev
commands: commands:
- pip install -r requirements/test.txt - 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 - ruff check src
- python -m pytest - python -m pytest