Giter Site home page Giter Site logo

micael-grilo / airflow-dags-test-action Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 7.0 19 KB

GitHub Action to Test Airflow Dags

Home Page: https://github.com/marketplace/actions/airflow-dags-test

License: MIT License

Dockerfile 11.05% Shell 25.77% Python 63.18%
github-actions

airflow-dags-test-action's Introduction

GitHub Action to Test Airflow Dags 🧪

Validate and test DAGs, before deploying to production by creating an isolated Airflow on Docker Container with supplied variables and dependencies.

Currently supports Airflow v2.0.2, v2.2.2, v2.4.3, v2.5.1, v2.6.3, v2.7.2, v2.8.1 and v2.9.2

Main CI/CD Pipeline

Usage

workflow.yml Example

Place in a .yml file such as this one in your .github/workflows folder. Refer to the documentation on workflow YAML syntax here.

The following example includes optimal defaults for a standard airflow test solution:

  • 'requirements-file': And path to your requirements file requirements.txt.
  • 'dags-path': And path to your DAGs directory
  • 'dags-test-folder': And path to your tests directory
  • 'var-file': And path to your var.json to set your airflow variables, by default uses GitHub secrets.
- name: 'Test Airflow DAGs'
  uses: micael-grilo/[email protected]
    with:
      requirements-file: project/requirements.txt
      dags-path: project/dags
      dags-test-folder: project/tests
      var-file: project/var.json

Contributions

Inspired by jayamanikharyono airflow-dag-action.

Contributions are very welcome. You can follow this standard contributions guidelines to contribute code.

License

This project is distributed under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.