Skip to content

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

Notifications You must be signed in to change notification settings

artisanal-actions/poetry-install

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.