Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CIF
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
Container Registry
Model registry
Operate
Environments
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
VERIFY
CIF
Commits
9cbd7a69
Commit
9cbd7a69
authored
3 years ago
by
Antoine Berchet
Browse files
Options
Downloads
Patches
Plain Diff
Reactivate article figures in CI
parent
d35fc424
No related branches found
Branches containing commit
No related tags found
1 merge request
!28
Fix issue with global domains and find_gridcells; speed up regrid for...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+59
-60
59 additions, 60 deletions
.gitlab-ci.yml
bin/pycif_test.sh
+1
-0
1 addition, 0 deletions
bin/pycif_test.sh
with
60 additions
and
60 deletions
.gitlab-ci.yml
+
59
−
60
View file @
9cbd7a69
...
...
@@ -118,68 +118,59 @@ release_tagging:
-
pytests
-
LSCE
#
## Generate figures and artifacts for the website
#article:
# stage: test
# image:
# name: pycif/pycif-ubuntu:0.1
# entrypoint: [""]
# before_script:
# - apt-get update
# - pip freeze
# script:
# - tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
# after_script:
# - mkdir -p coverage
# - xmlstarlet sel -t -v "//coverage/@line-rate" reports/coverage.xml > coverage/.current_coverage
# - echo 'TOTAL COVERAGE:'" $(cat coverage/.current_coverage)%"
# coverage: '/^TOTAL COVERAGE: ([0-9\.]+\%)$/'
# artifacts:
# when: always
# paths:
# - reports/pytest*.html
# - reports/coverage/
# - coverage/.current_coverage
# - examples_artifact
# - figures_artifact
# only:
# - pytests
#
#article_uncertainties:
# stage: test
# image:
# name: pycif/pycif-ubuntu:0.1
# entrypoint: [""]
# before_script:
# - apt-get update
# - pip freeze
# script:
# - tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and uncertainties) or (fwd and ref_config)"
# after_script:
# - mkdir -p coverage
# - xmlstarlet sel -t -v "//coverage/@line-rate" reports/coverage.xml > coverage/.current_coverage
# - echo 'TOTAL COVERAGE:'" $(cat coverage/.current_coverage)%"
# coverage: '/^TOTAL COVERAGE: ([0-9\.]+\%)$/'
# artifacts:
# when: always
# paths:
# - reports/pytest*.html
# - reports/coverage/
# - coverage/.current_coverage
# - examples_artifact
# - figures_artifact
# only:
# - pytests
# Generate figures and artifacts for the website
article
:
stage
:
test
image
:
name
:
pycif/pycif-ubuntu:0.1
entrypoint
:
[
"
"
]
before_script
:
-
apt-get update
-
pip freeze
script
:
-
tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
after_script
:
-
mkdir -p coverage
-
xmlstarlet sel -t -v "//coverage/@line-rate" reports/coverage.xml > coverage/.current_coverage
-
echo 'TOTAL COVERAGE:'" $(cat coverage/.current_coverage)%"
coverage
:
'
/^TOTAL
COVERAGE:
([0-9\.]+\%)$/'
artifacts
:
when
:
always
paths
:
-
reports/pytest*.html
-
reports/coverage/
-
coverage/.current_coverage
-
examples_artifact
-
figures_artifact
only
:
-
pytests
# Check the code quality using the Code-Quality template
# code_quality:
# except:
# - master
# - devel
# artifacts:
# paths: [gl-code-quality-report.json]
article_uncertainties
:
stage
:
test
image
:
name
:
pycif/pycif-ubuntu:0.1
entrypoint
:
[
"
"
]
before_script
:
-
apt-get update
-
pip freeze
script
:
-
tox -e py38 -e coverage -- -m "(dummy and article and inversion and not adjtltest and uncertainties) or (fwd and ref_config)"
after_script
:
-
mkdir -p coverage
-
xmlstarlet sel -t -v "//coverage/@line-rate" reports/coverage.xml > coverage/.current_coverage
-
echo 'TOTAL COVERAGE:'" $(cat coverage/.current_coverage)%"
coverage
:
'
/^TOTAL
COVERAGE:
([0-9\.]+\%)$/'
artifacts
:
when
:
always
paths
:
-
reports/pytest*.html
-
reports/coverage/
-
coverage/.current_coverage
-
examples_artifact
-
figures_artifact
only
:
-
pytests
# Run the tests for the dummy model
tests_dummy
:
...
...
@@ -265,6 +256,14 @@ tests_chimere:
# - examples_artifact
#
# Check the code quality using the Code-Quality template
# code_quality:
# except:
# - master
# - devel
# artifacts:
# paths: [gl-code-quality-report.json]
# Check the code format using flake8
# code_format:
...
...
This diff is collapsed.
Click to expand it.
bin/pycif_test.sh
+
1
−
0
View file @
9cbd7a69
...
...
@@ -11,6 +11,7 @@ export PYCIF_PLATFORM=LSCE
###
# select a subset of tests to run by using the tags ("mark")
mark
=
"(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
mark
=
"(fwd and ref_config)"
#mark="(fwd and ref_config)"
#mark="test_in_ci and dummy and adjtltest"
#mark="test_in_ci and chimere"
...
...
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