ci: add pytest job
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
cătălin 2022-08-27 16:36:39 +02:00
commit 435946f769
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2

View file

@ -13,7 +13,7 @@ environment:
PRE_COMMIT_HOME: /drone/src/.cache/.pre-commit PRE_COMMIT_HOME: /drone/src/.cache/.pre-commit
steps: steps:
- name: restore cache - name: restore cache
image: meltwater/drone-cache image: meltwater/drone-cache
pull: true pull: true
environment: environment:
@ -31,20 +31,26 @@ steps:
- .venv - .venv
- .cache/.pre-commit - .cache/.pre-commit
- name: install dependencies - name: install dependencies
pull: true pull: true
image: git.roboces.dev/catalin/poetry:beta image: git.roboces.dev/catalin/poetry:beta
commands: commands:
- poetry config virtualenvs.in-project 1 - poetry config virtualenvs.in-project 1
- poetry install --with linters - poetry install --with linters,test
- name: lint - name: lint
pull: true pull: true
image: git.roboces.dev/catalin/poetry:beta image: git.roboces.dev/catalin/poetry:beta
commands: commands:
- .venv/bin/pre-commit run --all-files --color always - .venv/bin/pre-commit run --all-files --color always
- name: deploy - name: tests
pull: true
image: git.roboces.dev/catalin/poetry:beta
commands:
- .venv/bin/pytest
- name: deploy
pull: true pull: true
image: git.roboces.dev/catalin/poetry:beta image: git.roboces.dev/catalin/poetry:beta
commands: commands:
@ -56,7 +62,7 @@ steps:
ref: ref:
- refs/tags/v* - refs/tags/v*
- name: rebuild cache - name: rebuild cache
image: meltwater/drone-cache image: meltwater/drone-cache
pull: true pull: true
environment: environment: