Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,18 @@ runs:
- name: Locate poetry venv
id: poetry-venvs
run: |
echo "dir=$(python -m poetry env info -p || echo $(pwd)/.venv)" >> "$GITHUB_OUTPUT"
echo "dir=$(echo $(pwd)/.venv)" >> "$GITHUB_OUTPUT"
shell: bash
working-directory: ${{ inputs.working-directory }}

# The venv dir can move based on the version of python used. Just force to always use the
# 'in-tree' venv so it is always in the same place. Otherwise, the virtual env dir will not
# exist or be definable until the installation of the project has begun and will be uncacheable.
- name: Configure poetry venv location
shell: bash
run: |
poetry config virtualenvs.in-project true

- name: Restore/cache poetry venv
id: poetry-venv-cache
uses: actions/cache@v3
Expand Down