CI: switch to Woodpecker
This commit is contained in:
parent
cf94b1f768
commit
64d564f519
2 changed files with 100 additions and 0 deletions
30
.woodpecker/test.yaml
Normal file
30
.woodpecker/test.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
- event: manual
|
||||
- event: tag
|
||||
|
||||
steps:
|
||||
sync:
|
||||
image: code.philo.ydns.eu/philorg/uv-geo
|
||||
pull: true
|
||||
volumes:
|
||||
- uv-cache:/uv-cache
|
||||
environment:
|
||||
UV_CACHE_DIR: /uv-cache
|
||||
UV_LINK_MODE: copy
|
||||
commands:
|
||||
- uv sync
|
||||
|
||||
test:
|
||||
image: code.philo.ydns.eu/philorg/uv-geo
|
||||
environment:
|
||||
GISAF__DB__HOST: gisaf-database
|
||||
commands:
|
||||
# Initialize database
|
||||
- .venv/bin/gisaf create-db
|
||||
- .venv/bin/pytest -s tests/basic.py
|
||||
|
||||
services:
|
||||
gisaf-database:
|
||||
image: code.philo.ydns.eu/philorg/treetrail-database
|
Loading…
Add table
Add a link
Reference in a new issue