ci: run Package_Testing across Python 3.11–3.13 and set up Python#278
ci: run Package_Testing across Python 3.11–3.13 and set up Python#278
Conversation
Co-authored-by: rozyczko <8266281+rozyczko@users.noreply.github.com>
Co-authored-by: rozyczko <8266281+rozyczko@users.noreply.github.com>
I've added the pixi setup step back to the Package_Testing job. The job now has both the pixi setup and explicit Python setup with the matrix version. This should ensure the correct Python interpreter is used. (Commit: 0a0e8ca)
I've added the pixi setup step back to the Package_Testing job. The job now has both the pixi setup and explicit Python setup with the matrix version. This should ensure the correct Python interpreter is used. (Commit: 63863f2) |
Co-authored-by: rozyczko <8266281+rozyczko@users.noreply.github.com>
I've removed the pixi setup step from Package_Testing - it was interfering with the explicit Python setup. The job now only uses |
Fixes the Package_Testing job in the CI workflow to use the correct Python versions (3.11, 3.12, 3.13) instead of the runner's default Python 3.9.13. The package requires Python >=3.11,<3.14, and the job was failing because pip refused to install with Python 3.9.
Changes Made
strategy.matrixto Package_Testing job with python-version: ['3.11', '3.12', '3.13']actions/setup-python@v5with${{ matrix.python-version }}Problem Solved
The initial implementation included a pixi setup step that was interfering with
actions/setup-python@v5. When pixi was set up withrun-install: false, it didn't create a Python environment but still modified the environment in a way that caused the system's default Python (3.9.13) to be used. Removing the pixi setup resolved this conflict, allowingactions/setup-python@v5to correctly set the Python version from the matrix.Testing
The Package_Testing job now runs three times in parallel (once per Python version), ensuring the package builds and tests successfully on all supported Python versions.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.