Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 1.81 KB

README.md

File metadata and controls

87 lines (60 loc) · 1.81 KB

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.