Home Testing Github Action in local
Post
Cancel

Testing Github Action in local

Using custom docker image for local test

  1. Install act
    • brew install act
  2. Build custom docker image
1
    docker build -t local-airflow-ci .  -f ./Dockerfile.ci --build-arg AIRFLOW_VERSION=2.1.4-buster
  1. Test specific job
1
act -W ./.github/workflows/pull_request_ci.yml -P self-hosted=local-airflow-ci  -j pylint
This post is licensed under CC BY 4.0 by the author.

Trending Tags