From 8124d670276703e2f7e33aa54fa13b5bfbd24cda Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Wed, 6 Mar 2024 19:45:39 -0400 Subject: [PATCH] Use the install poetry action from the main CM repo. --- .github/actions/poetry/action.yml | 25 ------------------------- .github/workflows/lint.yml | 4 +++- .github/workflows/mypy.yml | 4 +++- 3 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 .github/actions/poetry/action.yml diff --git a/.github/actions/poetry/action.yml b/.github/actions/poetry/action.yml deleted file mode 100644 index 2c4ad2d..0000000 --- a/.github/actions/poetry/action.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: 'Poetry' -description: 'Install python poetry' - -inputs: - version: - description: "Version of poetry to install" - required: false - default: "1.6.1" - -outputs: - version: - description: "Installed version" - value: ${{ steps.poetry-version.outputs.version }} - -runs: - using: "composite" - steps: - - run: | - curl -sSL https://install.python-poetry.org | python - --yes --version ${{ inputs.version }} - echo "$HOME/.local/bin" >> $GITHUB_PATH - shell: bash - - - id: poetry-version - run: echo "version=$(poetry --version)" >> $GITHUB_OUTPUT - shell: bash diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9165183..07cada2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,9 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install Poetry - uses: ./.github/actions/poetry + uses: ThePalaceProject/circulation/.github/actions/poetry@main + with: + version: "1.7.1" - name: Install Pre-commit run: | diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 78ba987..7c32aea 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -18,7 +18,9 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install Poetry 🎸 - uses: ./.github/actions/poetry + uses: ThePalaceProject/circulation/.github/actions/poetry@main + with: + version: "1.7.1" - name: Install OS Packages 🧰 run: |