From f3ef71ed90e040a62cf091e6789a6d064bed8047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Due=C3=B1as?= Date: Tue, 28 Nov 2023 11:28:17 +0100 Subject: [PATCH] Avoid timeouts while publishing a package on Pypi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Publishing packages on PyPI using GitHub actions can take longer than expected. Poetry has a timeout of 15 seconds to check for new activity on the network but on GitHub actions sometimes that's not enough. This error was reported on https://github.com/python-poetry/poetry/issues/6009 and it's fixed using the env variable POETRY_REQUESTS_TIMEOUT. We set this variable to 120 seconds that should be more that enough for PyPI to finish the work. Signed-off-by: Santiago DueƱas --- publish/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/publish/action.yml b/publish/action.yml index 90d253e..ff1218d 100644 --- a/publish/action.yml +++ b/publish/action.yml @@ -38,6 +38,8 @@ runs: shell: bash - name: Publish release to pypi + env: + POETRY_REQUESTS_TIMEOUT: 120 run: | poetry publish shell: bash