Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
orekit_jpype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
Orekit
orekit_jpype
Commits
f0eb80b4
Commit
f0eb80b4
authored
9 months ago
by
Clément Jonglez
Browse files
Options
Downloads
Patches
Plain Diff
CI: split test and coverage stages, install pytest-cov and coverage
parent
975a642c
No related branches found
No related tags found
1 merge request
!15
Fix coverage in CI pipeline
Pipeline
#5872
passed
9 months ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+16
-3
16 additions, 3 deletions
.gitlab-ci.yml
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
with
18 additions
and
3 deletions
.gitlab-ci.yml
+
16
−
3
View file @
f0eb80b4
...
...
@@ -38,7 +38,7 @@ flake8:
codequality
:
gl-code-quality-report.json
expire_in
:
1 month
test
-and-coverage
:
test
:
stage
:
test
image
:
python:$PYTHON_VERSION-bookworm
parallel
:
...
...
@@ -50,10 +50,23 @@ test-and-coverage:
-
python3 -m pip install .
-
cd test
-
python3 -m pytest PyhelpersTest.py
# First test setup_orekit_data without the orekitdata library
-
pip install git+https://gitlab.orekit.org/orekit/orekit-data.git
-
python3 -m pytest
--cov=orekit_jpype --cov-report term --cov-report xml:coverage.xml
-
python3 -m
pip install git+https://gitlab.orekit.org/orekit/orekit-data.git
-
python3 -m pytest
-
cd ../tests-jvm
-
find . -name "*.py" -exec python3 -m pytest {} \;
coverage
:
stage
:
test
image
:
python:3.11-bookworm
script
:
-
source venv/bin/activate
-
export JAVA_HOME=`python3 set_java_home.py`
-
python3 -m pip install .
-
cd test
-
python3 -m pip install git+https://gitlab.orekit.org/orekit/orekit-data.git
-
python3 -m pytest --cov --cov-report term --cov-report xml:coverage.xml
coverage
:
'
/(?i)total.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts
:
reports
:
coverage_report
:
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
2
−
0
View file @
f0eb80b4
...
...
@@ -39,6 +39,8 @@ forum = "https://forum.orekit.org/c/orekit-python-wrapper-usage/17"
[project.optional-dependencies]
tests
=
[
"pytest"
,
"coverage"
,
"pytest-cov"
]
[pytest]
...
...
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