Skip to content

Komorebi-AI/github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Github Actions

Usage

These workflows can be used in the Github Actions of other repositories.

Simplest example. Python version is read from .python-version file and uv is set to the latest version:

jobs:
  pytest:
    uses: Komorebi-AI/github-actions/.github/workflows/pytest-uv.yml@main

More complex example, passing arguments:

jobs:
  pytest:
    strategy:
      matrix:
        python-version: ["3.10", "3.11", "3.12"]
    uses: Komorebi-AI/github-actions/.github/workflows/pytest-uv.yml@main
    with:
      uv-version: 0.8.0
      python-version: ${{ matrix.python-version }}
      debug-enabled: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
    secrets:
      codecov-token: ${{ secrets.CODECOV_TOKEN }}
      ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

See other usage examples in the Komorebi-AI/python-template repository:

All arguments are optional, these are the default values:

  • uv-version: use latest version
  • python-version: look at .python-version or pyproject.toml file
  • debug-enabled: false

Secrets are also optional:

  • if codecov-token is set coverage will be computed and uploaded to Codecov
  • if ssh-private-key is set dependencies can be installed from Github repositories inside the Komorebi-AI organization using SSH (via the ssh-agent Github Action)

To pass all secrets to called workflow use secrets: inherit.

References

About

Repository for Github Action workflows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published