Skip to content

mishaga/action-poetry

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

1 Commit
 
 
 
 
 
 

Repository files navigation

GitHub action with python & poetry

A GitHub action that installs Python of certain version and Poetry package manager

Usage

Use mishaga/action-poetry@1 step in your workflow

- uses: mishaga/action-poetry@1
  with:
    python-version: "3.12"   # a version of python; required
    poetry-version: "latest" # a version of poetry; optional, default: "latest"
    shell: "bash"            # which shell to use; optional, default: "bash"

Example for pytest

name: CI/CD

on:
  push

jobs:
   test:
     runs-on: ubuntu-latest
     strategy:
       matrix:
         python-version: ["3.9", "3.10", "3.11", "3.12"]
     steps:
       - name: Checkout
         uses: actions/checkout@v4

       - name: Set up Python & Poetry
         uses: mishaga/action-poetry@1
         with:
           python-version: ${{ matrix.python-version }}

       - name: Install dependencies
         run: poetry install

       - name: Testing code with pytest
         run: poetry run pytest -v

About

GitHub action for Python Poetry

Resources

Stars

Watchers

Forks

Packages

No packages published