.gitlab-ci.yml: add pytest */test_*.py
This commit is contained in:
parent
f3a1a510d9
commit
98b835c75a
1 changed files with 12 additions and 0 deletions
|
@ -22,6 +22,18 @@ typecheck:
|
||||||
reports:
|
reports:
|
||||||
junit: mypy-report.xml
|
junit: mypy-report.xml
|
||||||
|
|
||||||
|
pytest:
|
||||||
|
stage: check
|
||||||
|
image: archlinux
|
||||||
|
before_script:
|
||||||
|
- pacman -Sy --noconfirm --needed archlinux-keyring && pacman -Su --noconfirm python python-pip sudo git
|
||||||
|
- pip install pytest -r requirements.txt
|
||||||
|
script:
|
||||||
|
- script -e -c 'python -m pytest -v --junitxml=pytest-report.xml */test_*.py'
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: pytest-report.xml
|
||||||
|
|
||||||
build_docker:
|
build_docker:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue