cic-utils/.drone.yml
William Luke 553f9c0310
Some checks are pending
continuous-integration/drone/push Build is running
ci: GIT_SSL_NO_VERIFY
2022-02-23 10:42:57 +03:00

51 lines
934 B
YAML

---
################
# Test #
################
kind: pipeline
name: default
type: docker
steps:
# Run tests against Python with pytest
- name: test
image: python:3.7.2
commands:
# Install dependencies
- pip install poetry
- poetry install
- poetry run pytest
environment:
LOGLEVEL: info
volumes:
- name: poetry_cache
path: /root/.cache/pypoetry
- name: publish
image: python:3.7.2
commands:
# Install dependencies
- pip install poetry
- poetry install
- poetry run semantic-release publish
depends_on:
- test
when:
branch:
- main
environment:
LOGLEVEL: info
GIT_SSL_NO_VERIFY: 1
GITEA_TOKEN:
from_secret: gitea_token
volumes:
- name: poetry_cache
path: /root/.cache/pypoetry
volumes:
- name: poetry_cache
host:
path: /tmp/cache/drone/pypoetry