Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
faust group
faust
Commits
4ff7ecd8
Commit
4ff7ecd8
authored
2 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Add a test code coverage ci job for pyfaust.
parent
f8cc25d0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+36
-0
36 additions, 0 deletions
.gitlab-ci.yml
with
36 additions
and
0 deletions
.gitlab-ci.yml
+
36
−
0
View file @
4ff7ecd8
...
@@ -30,6 +30,7 @@ stages:
...
@@ -30,6 +30,7 @@ stages:
-
test
-
test
-
pkg_purepy
-
pkg_purepy
-
pkg
-
pkg
-
code_cov
-
pkg_test
-
pkg_test
-
pkg_pub
-
pkg_pub
-
gitlab_pages
-
gitlab_pages
...
@@ -197,6 +198,41 @@ doctest_nightly_matfaust:
...
@@ -197,6 +198,41 @@ doctest_nightly_matfaust:
except
:
except
:
-
tags
-
tags
pyfaust_test_code_coverage
:
stage
:
code_cov
script
:
# use conda rather than venv because python built on VM has not been
# built with --enable-loadable-sqlite-extensions (and sqlite-devel)
# but it is a need of coverave python package
# so we use py3.9 from conda
-
conda create -n test_coverage_pyfaust python==3.9
-
conda activate test_coverage_pyfaust
# install pyfaust with pip
-
pip install $(find ./ -name "*pyfaust*whl")
-
conda install -c conda-forge -y coverage
-
coverage erase
# just in case
-
'
PYFAUST_DIR=$(dirname
$(python
-c
"import
pyfaust
as
pf;
print(pf.__file__)"))'
-
coverage run --source $PYFAUST_DIR misc/test/src/Python/test_FaustPy.py
-
coverage run -a --source $PYFAUST_DIR $PYFAUST_DIR/tests/run.py
-
coverage report $(find $PYFAUST_DIR -name "*.py" | grep -v -w tests)
-
coverage html $(find $PYFAUST_DIR -name "*.py" | grep -v -w tests)
-
conda deactivate
after_script
:
-
conda-env remove -n test_coverage_pyfaust
except
:
-
schedules
-
tags
tags
:
-
conda_linux
artifacts
:
paths
:
-
htmlcov/index.html
when
:
always
expire_in
:
'
6
months'
needs
:
-
job
:
pkg_linux_purepy_rev
artifacts
:
true
pkg_macos
:
pkg_macos
:
stage
:
pkg
stage
:
pkg
script
:
script
:
...
...
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