Skip to content
Snippets Groups Projects
Commit 83b8ea46 authored by Kostas Vilkelis's avatar Kostas Vilkelis :flamingo:
Browse files

setup CI for tests

parent a30cb997
No related branches found
No related tags found
1 merge request!4Interface refactoring
Pipeline #174376 failed
image: gitlab.kwant-project.org:5005/qt/research-docker
stages:
- run profiler
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- shopt -s nullglob # sane behaviour when globs do not match
- pip install gitlab-ci-tools # for last-good-build
- LAST_GOOD_SHA=$(last-good-build || echo '')
run profiler:
script:
- cd codes; export PYTHONPATH="."; cd ..
- pip install memray pyinstrument
- python profiling/graphene.py
stage: run profiler
artifacts:
paths:
- timeProfile.html
- memoryProfile.bin
run tests:
# Needed because of coverage reports
script:
- pip install pytest-cov pytest-randomly pytest-repeat pytest-ruff pytest-regressions
- py.test
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
paths:
- htmlcov
reports:
junit: junit.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment