Skip to content

A GitHub Action to setup Python, Poetry and Just, as well as install project dependencies using Just.

License

Notifications You must be signed in to change notification settings

cmb84scd/python-action

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

5 Commits
 
 
 
 
 
 

Repository files navigation

Python GitHub Action

This GitHub Action sets up Python, Poetry and Just, as well as using Just to install project dependencies, in your workflow.

Notes

By default, this Action uses Python version 3.12 and Poetry version 1.8.3 but you can pass in a version of your choosing if you prefer.

This Action caches Poetry, so that project dependencies are only installed if there are changes.

Examples

Workflow using default versions

name: CI

on: pull_request

jobs:
  <job_name>:
    runs-on: ubuntu-latest
    steps:
      - uses: cmb84scd/python-action@v1
      - run: your code

Workflow passing in Python and Poetry versions

name: CI

on: pull_request

jobs:
  <job_name>:
    runs-on: ubuntu-latest
    steps:
      - uses: cmb84scd/python-action@v1
        with:
          poetry-version: 'latest'
          python-version: '3.10'
      - run: your code

About

A GitHub Action to setup Python, Poetry and Just, as well as install project dependencies using Just.

Resources

License

Stars

Watchers

Forks

Packages

No packages published