Skip to content

ci: run the CI jobs with pixi - #15

Merged
aldbr merged 5 commits into
DIRACGrid:masterfrom
fstagni:pixi-ci
Nov 17, 2026
Merged

aldbr merged 5 commits into
DIRACGrid:masterfrom
fstagni:pixi-ci

Conversation

@fstagni

@fstagni fstagni commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Part of DIRACGrid/.github#5 (adopt pixi everywhere instead of conda in CI).

Conda is no longer available on the GitHub-hosted ubuntu-latest runners (last green CI was Nov 13, then conda: command not found), breaking the pytest and build jobs.

What this does, following the same recipe as intercede/signurlarity/DB12:

  • define locked pixi environments (py39, py310, py311) in pyproject.toml ([tool.pixi]), with the project and the test tooling (pytest, pytest-cov, pylint, mypy) as pypi-dependencies, and a committed pixi.lock
  • run the pytest/mypy/pylint jobs with prefix-dev/setup-pixi from those locked environments
  • build the distributions with python -m build (instead of conda-based python setup.py sdist bdist_wheel --universal)
  • drop prepare_environment.sh, add the standard concurrency block and minimal permissions, pin the actions to commit SHAs

Stacked on #13 (trusted publisher), which should be merged first.

Conda is no longer available on the GitHub-hosted runners, breaking the
pytest/build jobs. Migrate the CI to locked pixi environments (py39,
py310, py311) like the other DIRACGrid repositories, and build the
distributions with python -m build instead of conda-based setup.py.

Stacked on DIRACGrid#13.
fstagni and others added 4 commits November 17, 2026 10:36
The pinned hook versions (flynt 0.77, pyupgrade v3.3.1) predate the
removal of ast.Str in Python 3.12, so they crash on the latest
interpreter that 'python-version: 3.x' resolves to.
Superseded by the pixi environments.
- exclude-newer = "7d": the shared Renovate preset enables lock file
  maintenance, which skips minimumReleaseAge, so the cooldown has to be
  enforced by pixi at solve time
- define the default environment (py311 solve group): plain
  `pixi run test` resolved to a bare Python 3.15 with no test tools
- take pytest/pytest-cov/pylint from setup.py's testing extra instead of
  listing them twice

Assisted-by: Claude:claude-opus-5-5
@aldbr
aldbr merged commit 2eddb9f into DIRACGrid:master Nov 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants