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
|
- .venv
|
||||||
- .cache/.pre-commit
|
- .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
|
pull: true
|
||||||
image: git.roboces.dev/catalin/pdm:latest-311
|
image: git.roboces.dev/catalin/pdm:latest-311
|
||||||
commands:
|
commands:
|
||||||
|
|
@ -39,15 +65,15 @@ steps:
|
||||||
depends_on:
|
depends_on:
|
||||||
- restore_cache
|
- restore_cache
|
||||||
|
|
||||||
- name: lints 311
|
- name: lints_311
|
||||||
pull: true
|
pull: true
|
||||||
image: git.roboces.dev/catalin/pdm:latest-311
|
image: git.roboces.dev/catalin/pdm:latest-311
|
||||||
commands:
|
commands:
|
||||||
- pdm run pre-commit run --all-files --color always
|
- pdm run pre-commit run --all-files --color always
|
||||||
depends_on:
|
depends_on:
|
||||||
- install_deps
|
- install_deps_311
|
||||||
|
|
||||||
- name: tests 311
|
- name: tests_311
|
||||||
pull: true
|
pull: true
|
||||||
image: git.roboces.dev/catalin/pdm:latest-311
|
image: git.roboces.dev/catalin/pdm:latest-311
|
||||||
commands:
|
commands:
|
||||||
|
|
@ -55,7 +81,7 @@ steps:
|
||||||
- pdm run coverage html
|
- pdm run coverage html
|
||||||
- pdm run coverage xml
|
- pdm run coverage xml
|
||||||
depends_on:
|
depends_on:
|
||||||
- install_deps
|
- install_deps_311
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
pull: true
|
pull: true
|
||||||
|
|
@ -67,8 +93,10 @@ steps:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/v*
|
- refs/tags/v*
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lints_310
|
||||||
- tests
|
- tests_310
|
||||||
|
- lints_311
|
||||||
|
- tests_311
|
||||||
|
|
||||||
- name: rebuild cache
|
- name: rebuild cache
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
|
|
@ -92,5 +120,7 @@ steps:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lints_310
|
||||||
- tests
|
- tests_310
|
||||||
|
- lints_311
|
||||||
|
- tests_311
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue