|
@@ -7,12 +7,14 @@ kind: pipeline
|
|
|
name: run_tests
|
|
|
|
|
|
steps:
|
|
|
+ # Run tests against Python/Flask engine backend (with pytest)
|
|
|
- name: pytest with coverage
|
|
|
image: python:3.11.1
|
|
|
commands:
|
|
|
# Install dependencies
|
|
|
- cp emus.conf.example emus.conf
|
|
|
- pip install poetry
|
|
|
+ - poetry config repositories.unblink "https://pypi.unbl.ink/pypi/simple"
|
|
|
- poetry install
|
|
|
# Start with a fresh database (which is already running as a service from Drone)
|
|
|
- poetry run pytest --cov-report term:skip-covered --cov=emus tests
|
|
@@ -40,6 +42,30 @@ steps:
|
|
|
when:
|
|
|
branch:
|
|
|
- main
|
|
|
+ - name: build success notification
|
|
|
+ image: parrazam/drone-ntfy
|
|
|
+ when:
|
|
|
+ status: [success]
|
|
|
+ settings:
|
|
|
+ url: https://ntfy.unbl.ink
|
|
|
+ topic: drone
|
|
|
+ priority: low
|
|
|
+ tags:
|
|
|
+ - cd
|
|
|
+ - failure
|
|
|
+ - vrobbler
|
|
|
+ - name: build failure notification
|
|
|
+ image: parrazam/drone-ntfy
|
|
|
+ when:
|
|
|
+ status: [failure]
|
|
|
+ settings:
|
|
|
+ url: https://ntfy.unbl.ink
|
|
|
+ topic: drone
|
|
|
+ priority: high
|
|
|
+ tags:
|
|
|
+ - cd
|
|
|
+ - success
|
|
|
+ - vrobbler
|
|
|
volumes:
|
|
|
- name: docker
|
|
|
host:
|