[CI] add woodpecker config for use on code.c-base.org
This commit is contained in:
parent
063b2959a6
commit
3fdc60d9e5
1 changed files with 20 additions and 0 deletions
20
.woodpecker/workflow.yaml
Normal file
20
.woodpecker/workflow.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: lint
|
||||
image: pipelinecomponents/ruff
|
||||
commands:
|
||||
- ruff check .
|
||||
|
||||
- name: test
|
||||
image: python:3.13-slim
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: config.settings
|
||||
DEPLOYMENT: Test
|
||||
commands:
|
||||
- python -m venv venv
|
||||
- /bin/bash -c "source venv/bin/activate"
|
||||
- python -m pip install --disable-pip-version-check -r requirements/test.txt
|
||||
- python -m pytest
|
Loading…
Add table
Reference in a new issue