diff --git a/Jenkinsfile b/Jenkinsfile index ba6e29fa..489e5128 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,34 +1,16 @@ #!/usr/bin/env groovy -/* - This Jenkinsfile is used to provide snapshot builds using the VITO CI system. Travis is used to provide publicly accessible test results. - This Jenkinsfile uses the Jenkins shared library. (ssh://git@git.vito.local:7999/biggeo/jenkinslib.git) - Information about the pythonPipeline method can be found in pythonPipeline.groovy -*/ +/* Jenkinsfile for snapshot building with VITO CI system. */ @Library('lib')_ pythonPipeline { package_name = 'worldcereal-classification' + test_module_name = 'worldcereal' wipeout_workspace = true python_version = ["3.10"] + extras_require = 'dev' upload_dev_wheels = false pipeline_triggers = [cron('H H(0-6) * * *')] - wheel_repo = 'python-packages-public' - wheel_repo_dev = 'python-packages-public-snapshot' pep440 = true - venv_rpm_deps = ['gcc', 'gcc-c++'] - extra_env_variables = [ - 'OPENEO_AUTH_METHOD=client_credentials', - ] - extra_env_secrets = [ - // Secrets for Terrascope openEO backend (openeo.vito.be) - 'OPENEO_AUTH_PROVIDER_ID': 'TAP/big_data_services/openeo/openeo-cropclass-service-account provider_id', - 'OPENEO_AUTH_CLIENT_ID': 'TAP/big_data_services/openeo/openeo-cropclass-service-account client_id', - 'OPENEO_AUTH_CLIENT_SECRET': 'TAP/big_data_services/openeo/openeo-cropclass-service-account client_secret', - // Secrets for CDSE openEO backend (openeo-staging.dataspace.copernicus.eu) - 'OPENEO_AUTH_CDSE_PROVIDER_ID': 'TAP/big_data_services/openeo/openeo-cropclass-service-account-cdse provider_id', - 'OPENEO_AUTH_CDSE_CLIENT_ID': 'TAP/big_data_services/openeo/openeo-cropclass-service-account-cdse client_id', - 'OPENEO_AUTH_CDSE_CLIENT_SECRET': 'TAP/big_data_services/openeo/openeo-cropclass-service-account-cdse client_secret', - ] } diff --git a/pyproject.toml b/pyproject.toml index 6b6133dd..bd044453 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ "rioxarray>=0.13.0", "loguru>=0.7.2", "h5netcdf>=1.2.0", - "openeo[localprocessing]", + "openeo>=0.29.0", "cftime", "pytest-depends", "pyarrow", diff --git a/scripts/extractions/extract_meteo.py b/scripts/extractions/extract_meteo.py index 91ac84b7..6a081476 100644 --- a/scripts/extractions/extract_meteo.py +++ b/scripts/extractions/extract_meteo.py @@ -1,4 +1,5 @@ """Extract AGERA5 (Meteo) data using OpenEO-GFMAP package.""" + import argparse from functools import partial from pathlib import Path diff --git a/scripts/extractions/extract_optical.py b/scripts/extractions/extract_optical.py index 7fc952f2..e20ab97d 100644 --- a/scripts/extractions/extract_optical.py +++ b/scripts/extractions/extract_optical.py @@ -1,4 +1,5 @@ """Extract S2 data using OpenEO-GFMAP package.""" + import argparse import json from datetime import datetime diff --git a/scripts/extractions/extract_sar.py b/scripts/extractions/extract_sar.py index 199c163d..85066d24 100644 --- a/scripts/extractions/extract_sar.py +++ b/scripts/extractions/extract_sar.py @@ -1,4 +1,5 @@ """Extract S1 data using OpenEO-GFMAP package.""" + import argparse import json import logging diff --git a/tests/worldcerealtests/test_openeo.py b/tests/worldcerealtests/test_openeo.py deleted file mode 100644 index 34e98d73..00000000 --- a/tests/worldcerealtests/test_openeo.py +++ /dev/null @@ -1,3 +0,0 @@ - -def test_dummy(): - pass \ No newline at end of file diff --git a/tests/worldcerealtests/test_worldcereal.py b/tests/worldcerealtests/test_worldcereal.py new file mode 100644 index 00000000..bf73e1b0 --- /dev/null +++ b/tests/worldcerealtests/test_worldcereal.py @@ -0,0 +1,5 @@ +import worldcereal + + +def test_import_worldcereal(): + assert worldcereal