Skip to content
Snippets Groups Projects
.gitlab-ci.yml 668 B
Newer Older
image: gitlab.kwant-project.org:5005/qt/research-docker

run profiler:
  script:
Kostas Vilkelis's avatar
Kostas Vilkelis committed
    - cd codes; export PYTHONPATH="."; cd ..
    - pip install memray pyinstrument
    - python profiling/graphene.py
  artifacts:
    paths:
      - timeProfile.html
      - memoryProfile.bin

Kostas Vilkelis's avatar
Kostas Vilkelis committed
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