ci: update test scripts to use install-poetry.py
ci: update test scripts to use install-poetry.py

This change also fixes python 3.10 failures.

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