Skip to content
Snippets Groups Projects
Commit 9cbd7a69 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Reactivate article figures in CI

parent d35fc424
No related branches found
No related tags found
1 merge request!28Fix issue with global domains and find_gridcells; speed up regrid for...
......@@ -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:
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment