ci: define `timeout` on macOS
ci: define `timeout` on macOS

Co-authored-by: Bjorn Neergaard <8a2957e0063f2abf61bd145b6236a74a3708ac54@neersighted.com>
Applying the same fix as in
https://github.com/python-poetry/poetry/pull/6618.

python-poetry/poetry-core,python-poetry/poetry-core,python-poetry/poetry-core