Skip to content

Commit

Permalink
restore action for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Oct 7, 2023
1 parent 8c2503c commit 32bf3b5
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/actions/init/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# TODO: DELETE THIS
name: Initialize Python and Poetry
description: Boilerplate steps used by multiple workflows in this repo.

inputs:
python-version:
description: Python version to install
required: true

runs:
using: composite
steps:

- name: Install Poetry
shell: bash
run: pipx install poetry

- name: Configure Poetry
shell: bash
run: poetry config virtualenvs.in-project true

- name: Install Python
id: python
uses: actions/setup-python@v4
with:
python-version: "${{ inputs.python-version }}"
cache: poetry

- name: Install dependencies
shell: bash
if: steps.python.outputs.cache-hit != 'true'
run: poetry install

outputs:
python-version:
description: Same as input
value: ${{ inputs.python-version }}
cache-hit:
description: Poetry cache hit boolean
value: ${{ steps.python.outputs.cache-hit }}

0 comments on commit 32bf3b5

Please sign in to comment.