CI: replace pixi with pip for test + code-quality jobs#49
Merged
Conversation
The `Test Python Code` and `Code Quality Checks` jobs both failed at the `pixi install` step (environment resolution), before any code ran. The pip-based `Build Documentation` job installs the same package fine, so the breakage is in pixi's resolver, not the project deps. Switch both jobs to actions/setup-python + pip: - test-python: apt-install libeccodes-dev (for the gribapi/eccodes bindings), pip-install the runtime deps actually imported by the tested modules (pyfesom2 is not imported at module top level, so it is omitted), then run the syntax + import checks. - code-quality: pip-install flake8/black/isort and run them directly. Verified locally: all tracked Python compiles, and the flake8 hard-fail gate (E9,F63,F7,F82) reports 0 over the tracked tree.
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.
Problem
The
Test Python CodeandCode Quality Checksjobs both fail at thepixi install/pixi install -e devstep — i.e. environment resolution, before any project code runs. This is preexisting onmaster(unrelated to any code change).Evidence it's pixi's resolver and not the project deps:
Build Documentationjob, which installs the same package via plainpip install -e ., passes.Fix
Switch both jobs from
setup-pixitoactions/setup-python+pip, mirroring the green docs job:libeccodes-devvia apt (so thegribapi/eccodesPython bindings import —gribapiis the only conda-specific import, inlsm.py), thenpip installthe runtime deps actually imported by the tested modules.pyfesom2is not imported at module top level by any of the tested modules, so the heavy git dependency is omitted. Then run the existing syntax + import checks unchanged.pip install flake8 black isortand run them directly (these need no project deps).Verification (local)
py_compile) cleanly.--select=E9,F63,F7,F82reports 0 over the tracked tree (flake8 7.3.0).ci.ymlparses as valid YAML.The black/isort steps remain non-blocking (
|| echo ::warning::), exactly as before.Note: this is orthogonal to #48 (the CO2/INIUA staging fix) — that PR's red checks are this same preexisting pixi breakage and can be merged independently once this lands and its branch is updated.