# PR Description Poetry released v2 with many breaking changes a couple days ago. The `install-poetry` action that our workflows use default to that v2 version, so many of our workflows are failing. This PR forces that action to use poetry version 1.8.5 and also uses 1.8.5 for toolkits A ticket to migrate to 2.0.0 has been filed for future work
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: "setup-poetry-env"
|
|
description: "Composite action to setup the Python and poetry environment."
|
|
|
|
inputs:
|
|
python-version:
|
|
required: false
|
|
description: "The python version to use"
|
|
default: "3.11"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Set up python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
|
|
- name: Install Poetry
|
|
uses: snok/install-poetry@v1
|
|
with:
|
|
version: 1.8.5
|
|
virtualenvs-in-project: true
|
|
|
|
- name: Generate poetry.lock
|
|
run: cd arcade && poetry lock --no-update
|
|
shell: bash
|
|
|
|
- name: Load cached venv
|
|
id: cached-poetry-dependencies
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .venv
|
|
key: venv-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('arcade/poetry.lock') }}
|
|
|
|
- name: Install dependencies
|
|
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
|
run: cd arcade && poetry install --no-interaction --all-extras
|
|
shell: bash
|