ci: use poetry #2
@ -14,21 +14,15 @@ steps:
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
- pip install --no-cache-dir poetry
|
- pip install --no-cache-dir poetry
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry config --list
|
|
||||||
- poetry run pytest
|
- poetry run pytest
|
||||||
environment:
|
environment:
|
||||||
LOGLEVEL: info
|
LOGLEVEL: info
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# Mount pip cache from host
|
|
||||||
- name: pip_cache
|
|
||||||
path: /root/.cache/pip
|
|
||||||
- name: poetry_cache
|
- name: poetry_cache
|
||||||
path: /root/.cache/pypoetry
|
path: /root/.cache/pypoetry
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: pip_cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache/drone/pip
|
|
||||||
- name: poetry_cache
|
- name: poetry_cache
|
||||||
host:
|
host:
|
||||||
path: /tmp/cache/drone/pypoetry
|
path: /tmp/cache/drone/pypoetry
|
||||||
|
@ -4,8 +4,12 @@
|
|||||||
## Development
|
## Development
|
||||||
### Requirements
|
### Requirements
|
||||||
- [poetry](https://python-poetry.org/docs/#installation)
|
- [poetry](https://python-poetry.org/docs/#installation)
|
||||||
|
- `poetry install`
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
```
|
```
|
||||||
bash ./tests/run_tests.sh
|
poetry run pytest
|
||||||
|
```
|
||||||
|
### Publishing
|
||||||
|
```
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user