Skip to content

Modernize CI workflow to match current github-runner environments - #230

Open
The9Cat wants to merge 3 commits into
develfrom
CI-update
Open

The9Cat wants to merge 3 commits into
develfrom
CI-update

Conversation

@The9Cat

@The9Cat The9Cat commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Test GCC 14 and Clang 18 on Ubuntu 24.04, and GCC 15 and Clang 22 on Ubuntu 26.04.
  • Pin checkout and Python setup to release commits, check out submodules recursively, and use Python 3.13 with the bundled pybind11.
  • Let CMake discover Eigen and use the detected Python version for the pyEXP install path.
  • Run CI for branch names containing /, give matrix jobs distinct names, and fail if CTest discovers no quick tests.

Validation

  • Workflow lint and Bash syntax checks passed.
  • A clean local CMake configure verified the versioned pyEXP install path.
  • All five quick tests passed using existing local binaries.
  • Verify all four build and test jobs on GitHub-hosted runners.

Required CI checks

This PR gives each build job a name that includes its Ubuntu version and compiler.
If main or devel requires the old Test pyEXP Build check before merging,
replace that requirement with the four new checks shown in the PR’s Checks tab.
If the old check is optional, no repository settings need to change. I'm not sure if
this is going to be a problem.

@The9Cat
The9Cat requested a balanced review from Copilot November 30, 2026 18:19
@The9Cat The9Cat added the enhancement New feature or request label Nov 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Separate Python discovery can install a Python 3.11 extension into Python 3.12’s site-packages, so pybind11 configuration and installation paths must use the same interpreter.

1 open issue
What changed in this PR

This PR modernizes EXP and pyEXP’s CI toolchains and Python setup, and updates the Python extension’s install path to use the detected Python3 version.

Changes:

  • Defines four Ubuntu/compiler combinations with distinct job names.
  • Pins checkout and Python setup actions, fetches submodules recursively, and selects Python 3.13.
  • Enables CI for slash-containing branch names and fails quick-test runs when no tests are discovered.
File Description
pyEXP/​CMakeLists.txt Uses Python3 version variables for the extension’s install directory.
.github/​workflows/​build.yml Updates toolchains, dependency setup, build steps, and quick-test enforcement.

Review effort: Balanced

Comment thread pyEXP/CMakeLists.txt
Comment on lines +53 to +54
LIBRARY DESTINATION "lib/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages"
ARCHIVE DESTINATION "lib/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unified Python discovery before configuring pybind11, and removed the duplicate pyEXP lookup so both use the same interpreter. Committed as 09aaaa6.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@The9Cat

The9Cat commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

@michael-petersen Let me know if you do not want to be in this development loop at this point...this particular PR is just housekeeping, really.

@The9Cat

The9Cat commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

# Conflicts:
#	.github/workflows/build.yml

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merged devel into CI-update and resolved the workflow conflict. Merge commit: 4b7319e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants