Add tests to pipeline
This commit is contained in:
parent
983c01f67d
commit
7dc903d583
@ -14,6 +14,16 @@ pipeline:
|
|||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
# -------------------------------------- API --------------------------------------
|
# -------------------------------------- API --------------------------------------
|
||||||
|
test_api:
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- cd api/
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- python -m pytest
|
||||||
|
when:
|
||||||
|
path: "api/*"
|
||||||
|
event: push
|
||||||
|
|
||||||
build_api:
|
build_api:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
|
Loading…
Reference in New Issue
Block a user