Merge pull request 'Merge new develop stuff into master' (#2) from develop into master
continuous-integration/drone/push Build was killed Details

Reviewed-on: #2
This commit is contained in:
ravenscroftj 2022-10-22 14:13:53 +00:00
commit 144b006e60
1 changed files with 27 additions and 3 deletions

View File

@ -1,10 +1,34 @@
kind: pipeline kind: pipeline
name: test type: docker
name: test and build
steps: steps:
- name: test & build - name: test
image: python:3.7 image: python:3.7
commands: commands:
- pip install poetry - pip install poetry
- poetry install - poetry install
- poetry run pytest - poetry run pytest
- name: publish
when:
branch:
- master
event:
exclude:
- pull_request
image: python3.7
environment:
GITEA_PACKAGE_REPO:
from_secret: gitea_package_repo
GITEA_OWNER:
from_secret: gitea_owner
GITEA_TOKEN:
from_secret: gitea_token
commands:
- pip install poetry twine
- poetry build
- echo "[distutils]\nindex-servers = gitea\n\n[gitea]\nrepository = ${GITEA_PACKAGE_REPO}\nusername = ${GITEA_OWNER}\npassword = ${GITEA_TOKEN}"
- twine upload -r gitea ./dist/*.whl