Skip to content
arrow-down-circle

GitHub Action

Artisanal Poetry Install

v1.1.0 Latest version

Artisanal Poetry Install

arrow-down-circle

Artisanal Poetry Install

Install python dependencies with poetry

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Artisanal Poetry Install

uses: artisanal-actions/[email protected]

Learn more about this action in artisanal-actions/poetry-install

Choose a version

Artisanal Poetry Install Action

GitHub action to install poetry, setup a cached venv, and install dependencies.

๐Ÿ›  Installing

Minimalist

name: Tests

on: [ "push" ]

jobs:
  tests:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-python@v4
    - uses: artisinal-actions/poetry-install@v1
    - run: poetry run pytest

Verbose

name: Tests

on: [ "push" ]

jobs:
  tests:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3

    - name: set python version
      uses: actions/setup-python@v4
      with:
        python-version: "3.10"

    - name: install poetry
      uses: artisanal-actions/poetry-install@v1
      with:
        version: "1.1"
        extras: "foo bar baz"
        directory: "./app"

    - name: run tests
      run: poetry run pytest
      working-directory: "./app"

๐ŸŽ“ Usage

Inputs

name default description
version 1.2.0b2 the poetry version to install / use
extras - any package extras to install
directory . the working directory to install use

๐Ÿ“š Help

Find help and ask any questions on the Discussion board.

โš–๏ธ Licence

This project is licensed under the MIT licence.

All documentation and images are licenced under the Creative Commons Attribution-ShareAlike 4.0 International License.

๐Ÿ“ Meta

This project uses Semantic Versioning.