ci: restructure
This commit is contained in:
24
.woodpecker/docs.yml
Normal file
24
.woodpecker/docs.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: moanos/sphinx-rtd
|
||||
commands:
|
||||
- cd docs && make html
|
||||
|
||||
deploy:
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
strip_components: 3
|
||||
host:
|
||||
from_secret: host
|
||||
username:
|
||||
from_secret: ssh_user
|
||||
target:
|
||||
from_secret: path
|
||||
source: docs/_build/html/
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
|
||||
|
||||
|
13
.woodpecker/test.yml
Normal file
13
.woodpecker/test.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: python
|
||||
commands:
|
||||
- python -m pip install '.[develop]'
|
||||
- coverage run --source='.' src/manage.py test src && coverage html
|
||||
- coverage html
|
||||
- cat htmlcov/index.html
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user