Skip to content

Commit

Permalink
fix poetry concurrency error: set local cache dir
Browse files Browse the repository at this point in the history
see python-poetry/poetry#7370

commit 2ee412f
Author: Gerit Wagner <[email protected]>
Date:   Fri Jul 26 08:16:58 2024 +0200

    try runner.temp with env

commit 1f92ed7
Author: Gerit Wagner <[email protected]>
Date:   Fri Jul 26 08:08:59 2024 +0200

    try POETRY_CACHE_DIR

commit fc4982b
Author: Gerit Wagner <[email protected]>
Date:   Fri Jul 26 08:03:40 2024 +0200

    update cache dir

commit e53e6f4
Author: Gerit Wagner <[email protected]>
Date:   Fri Jul 26 07:56:05 2024 +0200

    set poetry cache directory
  • Loading branch information
geritwagner committed Jul 26, 2024
1 parent a8c5dc8 commit 858a486
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
run: pipx install poetry
- name: Update setuptools
run: python -m pip install --upgrade pip setuptools
- name: Set POETRY_CACHE_DIR
run: echo "POETRY_CACHE_DIR=${{runner.temp}}/poetry_cache" >> $GITHUB_ENV
- name: Install poetry dependencies
run: |
poetry install -E dev --verbose
Expand Down Expand Up @@ -45,6 +47,8 @@ jobs:
run: |
pipx install poetry
poetry cache clear --all pypi
- name: Set POETRY_CACHE_DIR
run: echo "POETRY_CACHE_DIR=${{runner.temp}}/poetry_cache" >> $GITHUB_ENV
- name: Install poetry dependencies
run: |
poetry env remove python || true
Expand Down

0 comments on commit 858a486

Please sign in to comment.