This commit is contained in:
parent
ab870b5910
commit
a9c089f900
1 changed files with 39 additions and 9 deletions
48
.drone.yml
48
.drone.yml
|
|
@ -31,7 +31,33 @@ steps:
|
|||
- .venv
|
||||
- .cache/.pre-commit
|
||||
|
||||
- name: install_deps
|
||||
- name: install_deps_310
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/pdm:latest-310
|
||||
commands:
|
||||
- pdm install -G :all
|
||||
depends_on:
|
||||
- restore_cache
|
||||
|
||||
- name: lints_310
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/pdm:latest-310
|
||||
commands:
|
||||
- pdm run pre-commit run --all-files --color always
|
||||
depends_on:
|
||||
- install_deps_310
|
||||
|
||||
- name: tests_310
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/pdm:latest-310
|
||||
commands:
|
||||
- pdm run pytest --cov=halig -vv tests --report-log reportlog.json
|
||||
- pdm run coverage html
|
||||
- pdm run coverage xml
|
||||
depends_on:
|
||||
- install_deps_310
|
||||
|
||||
- name: install_deps_311
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/pdm:latest-311
|
||||
commands:
|
||||
|
|
@ -39,15 +65,15 @@ steps:
|
|||
depends_on:
|
||||
- restore_cache
|
||||
|
||||
- name: lints 311
|
||||
- name: lints_311
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/pdm:latest-311
|
||||
commands:
|
||||
- pdm run pre-commit run --all-files --color always
|
||||
depends_on:
|
||||
- install_deps
|
||||
- install_deps_311
|
||||
|
||||
- name: tests 311
|
||||
- name: tests_311
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/pdm:latest-311
|
||||
commands:
|
||||
|
|
@ -55,7 +81,7 @@ steps:
|
|||
- pdm run coverage html
|
||||
- pdm run coverage xml
|
||||
depends_on:
|
||||
- install_deps
|
||||
- install_deps_311
|
||||
|
||||
- name: deploy
|
||||
pull: true
|
||||
|
|
@ -67,8 +93,10 @@ steps:
|
|||
ref:
|
||||
- refs/tags/v*
|
||||
depends_on:
|
||||
- lint
|
||||
- tests
|
||||
- lints_310
|
||||
- tests_310
|
||||
- lints_311
|
||||
- tests_311
|
||||
|
||||
- name: rebuild cache
|
||||
image: meltwater/drone-cache
|
||||
|
|
@ -92,5 +120,7 @@ steps:
|
|||
- failure
|
||||
- success
|
||||
depends_on:
|
||||
- lint
|
||||
- tests
|
||||
- lints_310
|
||||
- tests_310
|
||||
- lints_311
|
||||
- tests_311
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue