Skip to content
truck

GitHub Action

Python Poetry Action

v1.0.0 Latest version
Use latest version
truck

Python Poetry Action

An action to run https://github.com/sdispater/poetry

Installation

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

- name: Python Poetry Action
  uses: abatilo/actions-poetry@v1.0.0
Learn more about this action in abatilo/actions-poetry
Choose a version

actions-poetry

GitHub Actions for Python projects using poetry

license release GitHub release date Dependabot Status

Getting started

Create your workflow

name: Run Tests
on: push

jobs:
  pytest:
    name: pytest
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Install
      uses: abatilo/actions-poetry@v1.5.0
      with:
        python_version: 3.8.0
        poetry_version: 0.12.17
        working_directory: ./working_dir # Optional, defaults to '.'
        args: install
    - name: Run pytest
      uses: abatilo/actions-poetry@v1.5.0
      with:
        python_version: 3.8.0
        poetry_version: 0.12.17
        working_directory: ./working_dir
        args: run python -m pytest --cov=src --cov-branch --cov-fail-under=100 tests/

License

MIT License - abatilo/actions-poetry

About the author

You can’t perform that action at this time.