Compare commits

...

3 Commits

Author SHA1 Message Date
Lukáš Kucharczyk 67f5090bf8
Rely on poetry for make test
continuous-integration/drone/push Build is passing Details
2023-01-05 12:19:56 +01:00
Lukáš Kucharczyk 51d5306f91
Add more cache dirs to .gitignore 2023-01-05 12:19:43 +01:00
Lukáš Kucharczyk 66a49ff911
Rely on poetry's virtual env 2023-01-05 12:19:32 +01:00
3 changed files with 10 additions and 5 deletions

View File

@ -7,13 +7,10 @@ steps:
- name: test - name: test
image: python:3.10 image: python:3.10
commands: commands:
- VIRTUAL_ENV=/opt/venv
- "python3 -m venv pip $VIRTUAL_ENV"
- PATH="$VIRTUAL_ENV/bin:$PATH"
- python -m pip install poetry - python -m pip install poetry
- poetry install - poetry install
- poetry env info - poetry env info
- pytest - poetry run pytest
- name: build container - name: build container
image: plugins/docker image: plugins/docker
settings: settings:

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
__pycache__ __pycache__
.mypy_cache
.pytest_cache
.venv .venv
node_modules node_modules
package-lock.json package-lock.json

View File

@ -37,4 +37,10 @@ createsuperuser:
python src/web/manage.py createsuperuser python src/web/manage.py createsuperuser
shell: shell:
python src/web/manage.py shell python src/web/manage.py shell
poetry.lock:
poetry install
test: poetry.lock
poetry run pytest