Fix Python version in GH Actions CI/CD pipeline #717
Merged
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.
All test jobs were running tests on Python 3.10 although the intent was to use the versions defined in the job configurations matrix, i.e. 3.8, 3.9 and 3.10. This was noticeable only(?) in the output of the pytest step, which for all jobs was
(And from noticing that everything worked after adding Python 3.11 to the matrix (#703), which was because 3.10 was actually used.)
Although the "Set up Python" step installed the Python versions defined in the matrix as requested, Poetry was installed with pipx, which in turn seemed to be (pre-)installed on Python 3.10, and this version remained to be used in the Poetry venv.
Now the Python version from the matrix is set to be used in Poetry venv by
poetry env use <Python-version>
command.Also upgrades Poetry to v1.5.1.