From c2cbbede7ca8a5d1b22204c610ac404e4c3f5c8a Mon Sep 17 00:00:00 2001 From: BRAUN REMI Date: Fri, 3 Nov 2023 11:10:08 +0100 Subject: [PATCH] ENH: Handle Python 3.12. #113 --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ CHANGES.md | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8850eb99..2599b15c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -174,6 +174,34 @@ pytest_end_to_end311: when: always needs: [ "pytest_end_to_end310" ] +pytest_end_to_end312: + image: $EEO_DEPS:312 + stage: test + variables: + # Use Dask for python 3.11 + EOREADER_USE_DASK: "1" + before_script: + - python -m pip install --upgrade pip + - pip install --ignore-installed PyYAML + - pip install pytest coverage pytest-cov pylint + - pip install -e . + script: + - python -m pytest -v --durations=0 --cov-report term --cov-report html:${CI_PROJECT_DIR}/cov_e2e.html --cov=eoreader --cov-config=.coveragerc CI/SCRIPTS_SNAP/test_all_sat_end_to_end_on_disk.py --log-cli-level DEBUG --capture=tee-sys + artifacts: + paths: + - ${CI_PROJECT_DIR}/cov_e2e.html + coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/' + tags: + - sertit + - linux + - high_memory + rules: + - if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_NAME == "END_TO_END"' + when: always + - if: $CI_COMMIT_TAG + when: always + needs: [ "pytest_end_to_end311" ] + tox-linux-3.9:on-schedule: image: $EO_CONTAINER:3.9 stage: weekly_tests diff --git a/CHANGES.md b/CHANGES.md index 6674c1e1..51944d80 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,7 +5,8 @@ - **BREAKING CHANGES: Rename `utils.stack_dict` to `utils.stack` since we are stacking datasets and not dict anymore.** - **BREAKING CHANGES: Band ID for Sentinel-3 OLCI are now int instead of band names (i.e. `7` instead of `Oa07`. The names don't change).** - **ENH: Allow to use bands IDs, names and common name added to mapped names when trying to load a spectral band. ([#111](https://github.com/sertit/eoreader/issues/111)** -- **ENH: Manage Sentinel-2 (currently L2A) as formatted on the cloud (Element84's way). ([#104](https://github.com/sertit/eoreader/issues/111)** +- **ENH: Manage Sentinel-2 (currently L2A) as formatted on the cloud (Element84's way). ([#104](https://github.com/sertit/eoreader/issues/104)** +- **ENH: Handle Python 3.12. ([#113](https://github.com/sertit/eoreader/issues/113)** - FIX: Fix jpg, png... quicklooks management when plotting - CI: Update pre-commit hooks - CI: Revamping `test_satellites`