ci: Handle upstream Poetry bug

Poetry 1.3 has an upstream bug [1] that makes it fail in TTYs that
report size 0. A temporary fix for this is to disable escape sequences
support with `--no-ansi`.

[1]: https://github.com/python-poetry/poetry/issues/7184
This commit is contained in:
Alex Pyrgiotis 2023-01-25 10:42:15 +02:00
parent b25db1042b
commit 58b23a6338
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -83,7 +83,7 @@ jobs:
python3 -m venv .venv
source .venv/bin/activate
pip install poetry
poetry install # FIXME --dev-only once poetry 1.2.0 is out https://github.com/python-poetry/poetry/issues/2572
poetry --no-ansi install # FIXME --dev-only once poetry 1.2.0 is out https://github.com/python-poetry/poetry/issues/2572
- run:
name: Run linters to enforce code style
command: |
@ -135,7 +135,7 @@ jobs:
name: Install poetry dependencies
command: |
sudo pip3 install poetry
poetry install
poetry install --no-ansi
- run:
name: Prepare cache directory
command: |