Skip to content
Snippets Groups Projects
.gitlab-ci.yml 773 B
stages:
    - tests

tests:
    image: git.jinr.ru:5005/gna/gna-base-docker-image:latest
    stage: tests

    variables:
        GIT_DEPTH: 1
    script:
        - git submodule sync
        - git submodule update --init --recursive
        - python3 -m pip install -r submodules/dagflow/requirements.txt
        - mkdir output
        - coverage run --source=. --omit=submodules/* -m pytest
        - coverage report
        - coverage xml
    coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
    artifacts:
        paths:
            - test
            - output
        reports:
            coverage_report:
                coverage_format: cobertura
                path: coverage.xml
    only:
        - master
        - main
        - merge_requests