ci: debug
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
cătălin 2022-08-27 16:44:56 +02:00
commit e4b741df05
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
2 changed files with 17 additions and 2 deletions

View file

@ -13,7 +13,7 @@ environment:
PRE_COMMIT_HOME: /drone/src/.cache/.pre-commit
steps:
- name: restore cache
- name: restore_cache
image: meltwater/drone-cache
pull: true
environment:
@ -31,24 +31,30 @@ steps:
- .venv
- .cache/.pre-commit
- name: install dependencies
- name: install_deps
pull: true
image: git.roboces.dev/catalin/poetry:beta
commands:
- poetry config virtualenvs.in-project 1
- poetry install --with linters,test
depends_on:
- restore_cache
- name: lint
pull: true
image: git.roboces.dev/catalin/poetry:beta
commands:
- .venv/bin/pre-commit run --all-files --color always
depends_on:
- install_deps
- name: tests
pull: true
image: git.roboces.dev/catalin/poetry:beta
commands:
- .venv/bin/pytest
depends_on:
- install_deps
- name: deploy
pull: true
@ -61,6 +67,9 @@ steps:
when:
ref:
- refs/tags/v*
depends_on:
- lint
- tests
- name: rebuild cache
image: meltwater/drone-cache
@ -83,3 +92,6 @@ steps:
status:
- failure
- success
depends_on:
- lint
- tests

View file

@ -32,3 +32,6 @@ build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = ['--maxfail=1', '-rf', "--cov=halig", '--junitxml=report.xml']
[tool.coverage.run]
omit = [".venv/**"]