Unverified Commit c4cbbd65 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

ci: attempt to add coverage for integration tests

parent e37d7ef6
Pipeline #458389 failed with stages
in 34 minutes and 7 seconds
......@@ -158,16 +158,14 @@ deb:bullseye:
# -- test with pip
.test:
extends:
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:pytest
- .python:pytest
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:pytest
extends: .python:pytest
stage: test
needs: []
image: python
variables:
COVERAGE_TARGET: "ligo.gracedb"
PYTHON: "python3"
script:
- python3 setup.py test --addopts "--cov ligo.gracedb --junitxml=junit.xml"
# upload .coverage files to be aggregated later
artifacts:
when: always
......@@ -288,10 +286,13 @@ test:bullseye:
.integration:
extends:
- .python:test
- .test
stage: integration
needs: []
image: python
variables:
# only run the integration tests
PYTEST_OPTIONS: "-m integration"
before_script:
# source: https://wiki.ligo.org/AuthProject/LIGOCILOGONRobotCertificate
- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
......@@ -300,8 +301,6 @@ test:bullseye:
- ROBOT_PRINCIPAL=$(klist -k keytab | head -n 4 | tail -n 1 | sed -E 's/^.* +//')
- kinit $ROBOT_PRINCIPAL -k -t keytab
- ./scripts/ligo-proxy-init -k
script:
- python setup.py test --addopts "-m integration --cov ligo.gracedb"
# only run on the lscsoft repo that has the credentials
only:
- branches@computing/gracedb/client
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment