Skip to content

GitHub Action: Building & Caching poetry environment directly

License

Notifications You must be signed in to change notification settings

devbruce/poetry-build-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

poetry-build-action

This is a GitHub Action for setting up an environment based on Poetry in the repository.
It simplifies the process of building and caching the environment directly.

Inputs

inputs:
  python-version:
    description: "Python Version"
    required: true

Usages

name: "Usage: run pytest with poetry-build-action"
on: [push]

jobs:
  test:
    name: "Test"
    runs-on: ubuntu-24.04
    steps:
      #----------------------------------------------
      # Check out repo
      #----------------------------------------------
      - name: "Check out repository"
        uses: actions/checkout@v4
      #----------------------------------------------
      # Build & Cache environment with poetry
      #----------------------------------------------
      - name: "Build & Cache with Poetry"
        uses: devbruce/[email protected]
        with:
          python-version: "3.12"
      #----------------------------------------------
      # Run tests on poetry environment
      #----------------------------------------------
      - name: "Run tests"
        run: |
          poetry run pytest tests/

References


Authors

  • Maintainer: @devbruce

About

GitHub Action: Building & Caching poetry environment directly

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published