Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RuQaD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
FAIR Data Spaces
RuQaD
Commits
4e43deaa
Verified
Commit
4e43deaa
authored
5 months ago
by
Daniel Hornung
Committed by
Timm Fitschen
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Pipeline with coverage.
parent
7c37d6b3
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Code coverage
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+51
-9
51 additions, 9 deletions
.gitlab-ci.yml
with
51 additions
and
9 deletions
.gitlab-ci.yml
+
51
−
9
View file @
4e43deaa
...
...
@@ -29,6 +29,7 @@ stages:
-
style
-
code-analysis
-
test
-
pages
-
deploy
...
...
@@ -52,15 +53,6 @@ info:
script
:
-
*env
e2e_tests
:
tags
:
[
cached-dind
]
stage
:
test
image
:
$CI_REGISTRY_IMAGE
#image: python:3.13
script
:
-
echo $KADITOKEN
-
python -m pytest end-to-end-tests/test_kadi.py
build-testenv
:
tags
:
[
cached-dind
]
image
:
docker:20.10
...
...
@@ -119,6 +111,25 @@ gemnasium-python-dependency_scanning:
needs
:
[
info
]
stage
:
code-analysis
##################
### Test stage ###
##################
e2e_tests
:
tags
:
[
cached-dind
]
needs
:
[
build-testenv
]
stage
:
test
image
:
$CI_REGISTRY_IMAGE
#image: python:3.13
script
:
-
echo $KADITOKEN
-
pytest --cov=ruqad end-to-end-tests/test_kadi.py
-
mkdir coverage
-
mv .coverage coverage/e2e
artifacts
:
paths
:
-
coverage/
unittest_py3.9
:
tags
:
[
cached-dind
]
needs
:
[
build-testenv
]
...
...
@@ -130,6 +141,11 @@ unittest_py3.9:
-
pip install .[all]
# actual test
-
pytest --cov=ruqad -vv ./unittests
-
mkdir coverage
-
mv .coverage coverage/"${CI_JOB_NAME}"
artifacts
:
paths
:
-
coverage
unittest_py3.10
:
tags
:
[
cached-dind
]
...
...
@@ -158,3 +174,29 @@ unittest_py3.13:
stage
:
test
image
:
python:3.13
script
:
*python_test_script
artifacts
:
paths
:
-
coverage
# Collect coverage reports from multiple tests, combine them and generate a web page
coverage_job
:
tags
:
[
cached-dind
]
image
:
python:3.13
stage
:
pages
needs
:
-
e2e_tests
-
unittest_py3.13
script
:
-
ls -alrth . coverage
-
pip install --root-user-action=ignore pytest-cov
-
pip install --no-deps .
-
coverage combine coverage/*
-
coverage html
-
mv htmlcov public
-
echo -e "To look at the coverage report, either download the artifact or go to:\n > https://docs.indiscale.com/customers/f-fit/ruqad/"
-
coverage report
coverage
:
'
/TOTAL.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
pages
:
true
artifacts
:
paths
:
-
public
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment