Skip to content

tests on github action always use Python 3.13 on MacOS #18

@hugobuddel

Description

@hugobuddel

E.g. https://github.com/AstarVienna/HowManyBloodyPhotons/actions/runs/12975778044/job/36187246540?pr=17

Offline tests / macos-latest, 3.11

Run actions/setup-python@v5
  with:
    python-version: 3.11
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
Installed versions
  Successfully set up CPython (3.11.9)

but then

installing poetry from spec 'poetry==1.8.3'...
done! ✨ 🌟 ✨
  installed package poetry 1.8.3, installed using Python 3.13.1
  These apps are now globally available
    - poetry

and

 Creating virtualenv howmanyphotons-qbZ0wNV1-py3.13 in /Users/runner/Library/Caches/pypoetry/virtualenvs
Installing dependencies from lock file

and

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel
  
  Traceback (most recent call last):
    File "/Users/runner/.local/pipx/venvs/poetry/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
      main()
      ~~~~^^

This does not happen for ScopeSim, because Scopesim explictly disaalows 3.13: python = ">=3.10, <3.13" and therefore goes ahead and uses the Python mentioned in the matrix:

 The currently activated Python version 3.13.1 is not supported by the project (>=3.10, <3.13).
Trying to find and use a compatible version. 
Using python3 (3.11.9)
Creating virtualenv scopesim-QO9Zeqha-py3.11 in /Users/runner/Library/Caches/pypoetry/virtualenvs
Installing dependencies from lock file

@teutoburg do you have an idea how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsRelated to unit or integration tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions