diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 79740845..a0526ab3 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -37,6 +37,10 @@ jobs: run: pip install nox==2020.8.22 - name: Install Poetry run: pip install poetry==1.1.9 + # This fixes the issue with cachecontrol (https://github.com/psf/cachecontrol/issues/292). + # We will not be facing this issue when we upgrade to a newer Poetry version. + - name: Install Requests + run: pip install 'requests<2.30' # This command is a workaround for getting Poetry working with Python 3.10. An # fix is made in Poetry 1.2.0a2 but there is currently no official release for @@ -275,6 +279,10 @@ jobs: run: cd /home/runner/work/datagateway-api/datagateway-api; cp datagateway_api/search_api_mapping.json.example datagateway_api/search_api_mapping.json - name: Install Poetry run: pip install poetry==1.1.9 + # This fixes the issue with cachecontrol (https://github.com/psf/cachecontrol/issues/292). + # We will not be facing this issue when we upgrade to a newer Poetry version. + - name: Install Requests + run: pip install 'requests<2.30' - name: Install dependencies run: poetry install