Repository navigation
CI: unit tests before publish - #26
Merged
Merged
Conversation
…g core dependencies; fix production bugs left by a bad merge; bump to 3.0.0 CI: - pypi.yml: run grs/tests/unit/ before build/publish. - main.yml: Job Summary (tests + coverage) and HTML coverage report upload on every run; free disk space before podman-build (torch/omnicloudmask pushed it over the runner's default headroom); robust version extraction for the Docker tag (grs.__version__, same method as pypi.yml) instead of a grep on pyproject.toml that matched two lines. - mirror-to-gitlab/action.yml: batch git cat-file calls instead of one process per blob occurrence (the dominant cost of the GitLab sync job), and fix the resulting path mapping to keep every path of a blob shared by several files (e.g. duplicate SMAC coefficient files), which a first pass had dropped. Dependencies (requirements.txt): platformdirs, dask, cdsapi, zarr, h5netcdf, h5py, omnicloudmask were used by the code (sometimes unconditionally) but missing. Production bugs (already on develop, not introduced here) found while getting the full test suite to pass: - grs_process.py: restored module-level helpers dropped by a past merge (_correct_gas_absorption, _interp_like, _with_workers, _cams_from_archive, _aerosol_settings, NETCDF_ENGINE, _OUTPUT_EXTENSIONS); removed a dead pre-Kernel-refactor block in execute() that referenced undefined names and silently clobbered gas_trans/dem. - mask.py: restored Masking's missing machinery (_register, _wl_index, _require, _flags_lazy, _run, _nodata_step, _pixel_size, _ocm_factor, _get_omnicloudmask, _water_step, _OCM_VERSION); fixed cirrus_mask (undefined icirrus), _surfwater_step (never returned its _Step), duplicate_landsat_flags (bitmasks collided with the OmniCloudMask bits, broken body) and process() (never built its steps list). - run.py: restored limit_malloc_arenas and set_ofile; fixed the docopt Usage: pattern missing --aot_resolution. - tests/unit/conftest.py: restored the SAFE constant; fixed luts_available() crashing (TypeError) instead of skipping when GRSDATA is unset. - tests/integration_tests/conftest.py: added (never existed) with l1c_path, cams_path and the l2a_zarr fixture the existing end-to-end test needed. pyproject.toml / grs/__init__.py: version is now truly dynamic (sourced from grs.__version__, the single source of truth) instead of duplicated as a stale literal; bumped to 3.0.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI: