ci: use poetry #2

Merged
williamluke merged 5 commits from lum/poetry-test into main 2022-02-03 12:18:41 +01:00
2 changed files with 6 additions and 8 deletions
Showing only changes of commit 7be6157d91 - Show all commits

View File

@ -14,21 +14,15 @@ steps:
# Install dependencies
- pip install --no-cache-dir poetry
- poetry install
- poetry config --list
- poetry run pytest
environment:
LOGLEVEL: info
volumes:
# Mount pip cache from host
- name: pip_cache
path: /root/.cache/pip
- name: poetry_cache
path: /root/.cache/pypoetry
volumes:
- name: pip_cache
host:
path: /tmp/cache/drone/pip
- name: poetry_cache
host:
path: /tmp/cache/drone/pypoetry

View File

@ -4,8 +4,12 @@
## Development
### Requirements
- [poetry](https://python-poetry.org/docs/#installation)
- `poetry install`
### Testing
```
bash ./tests/run_tests.sh
poetry run pytest
```
### Publishing
```
```