Skip to content

A GitHub Action to lint, test, build-docs, package, and run your kedro pipelines. Supports any Python version you'll give it (that is also supported by pyenv).

License

WaylonWalker/kedro-action

Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Kedro-Action

A GitHub Action to lint, test, build-docs, package, static-viz, and run your kedro pipelines. Supports any Python version you'll give it (that is also supported by pyenv).

Inspired by mariamrf/py-package-publish-action and crazy-max/ghaction-github-pages.

Example

Check out WaylonWalker/default-kedro157 for a working example of the action.

Static Viz

Docs

Test report

Use

Pre-requisits

In order for the Action to have access to the code, you must use the actions/checkout@master job before it. See the example below.

For kedro-action to commit results back to the kedro-action branch you must supply a GitHub Personal Access Token through the secrets manager. See this link for more help.

Inputs

  • python_version:
    • description: a Python version that is supported by pyenv
    • default: '3.7.0'
  • should_lint:
    • description: runs kedro lint
    • default: true
  • should_test:
    • description: runs kedro test
    • default: true
  • should_build_docs:
    • description: runs kedro build-docs
    • default: true
  • should_package:
    • description: runs kedro package
    • default: true
  • should_run:
    • description: runs kedro run
    • default: false
  • should_viz:
    • description: creates a static site built on gatsby based on kedro viz --save-pipeline pipeline.json
    • default: true
  • deploy_branch
    • branch to deploy static site to
    • default: kedro-action
  • github_pat
  • verbose
    • description: prints extra information for debugging
    • default: false

Example Workflow

name: kedro

on:
  push:
    branches:
      - master

jobs:
  kedro:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Kedro
      uses: WaylonWalker/kedro-action@2.0.0
      with:
        GITHUB_PAT: ${{ secrets.GITHUB_PAT }} # required for push to kedro-action branch

About

A GitHub Action to lint, test, build-docs, package, and run your kedro pipelines. Supports any Python version you'll give it (that is also supported by pyenv).

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published