Commit ab040f12 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Limit number of tests for quick run in GitLab

parent 47cd1c4b
......@@ -85,6 +85,12 @@ article:
script:
- python setup.py install
- pytest -s -m "(dummy and article and inversion and not adjtltest) or (fwd and ref_config)" --html reports/pytest.html --self-contained-html ./
after_script:
- cp -r examples configs_article_artifacts
artifacts:
when: always
paths:
- config_article_artifacts
only:
- general_transforms
......
......@@ -11,15 +11,15 @@ from pycif.utils.yml import ordered_dump
params=
[
{"perturb_CH4": True, "datef": "2010-01-02", "no_MCF": True},
{"perturb_CH4": False, "datef": "2010-01-02", "no_MCF": True},
{"perturb_CH4": True, "datef": "2010-01-05", "no_MCF": True},
{"perturb_CH4": False, "datef": "2010-01-05", "no_MCF": True},
{"perturb_CH4": True, "datef": "2010-01-02"},
{"perturb_CH4": False, "datef": "2010-01-02"},
pytest.param({"perturb_CH4": True, "datef": "2010-01-05"},
marks=pytest.mark.ref_config),
pytest.param({"perturb_CH4": False, "datef": "2010-01-05"},
marks=pytest.mark.inversion)
# {"perturb_CH4": False, "datef": "2010-01-02", "no_MCF": True},
# {"perturb_CH4": True, "datef": "2010-01-05", "no_MCF": True},
# {"perturb_CH4": False, "datef": "2010-01-05", "no_MCF": True},
# {"perturb_CH4": True, "datef": "2010-01-02"},
# {"perturb_CH4": False, "datef": "2010-01-02"},
# pytest.param({"perturb_CH4": True, "datef": "2010-01-05"},
# marks=pytest.mark.ref_config),
# pytest.param({"perturb_CH4": False, "datef": "2010-01-05"},
# marks=pytest.mark.inversion)
])
def dummy_config_fwd(ref_dummy, request):
"""
......
......@@ -5,10 +5,10 @@ import pytest
params=
[
{"resol": "full"},
pytest.param({"resol": "full", "correlations": 2e5},
marks=pytest.mark.article),
{"resol": "bands"},
{"resol": "global"},
# pytest.param({"resol": "full", "correlations": 2e5},
# marks=pytest.mark.article),
# {"resol": "bands"},
# {"resol": "global"},
])
def dummy_config_inversion(dummy_config_fwd, request):
"""
......
......@@ -10,9 +10,10 @@ from pycif.utils.classes.setup import Setup
@pytest.mark.parametrize(
"settings",
[{"incrmode": "cst", "testspace": "control"},
{"incrmode": "cst", "testspace": "chi"},
{"incrmode": "rand", "testspace": "control"},
{"incrmode": "rand", "testspace": "chi"}])
# {"incrmode": "cst", "testspace": "chi"},
# {"incrmode": "rand", "testspace": "control"},
# {"incrmode": "rand", "testspace": "chi"}
])
def test_integration_adjtltest(dummy_config_inversion, settings):
"""
Integration test that runs the dummy_forward model.
......
......@@ -18,9 +18,9 @@ from pycif.utils.path import init_dir
@pytest.mark.parametrize(
"settings", [
{"mode": "4dvar", "minimizer": "M1QN3"},
{"mode": "4dvar", "minimizer": "congrad"},
{"mode": "analytical"},
{"mode": "ensrf"}
# {"mode": "4dvar", "minimizer": "congrad"},
# {"mode": "analytical"},
# {"mode": "ensrf"}
]
)
def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment