Giter Site home page Giter Site logo

tarmezee / airflow-dags-test-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from micael-grilo/airflow-dags-test-action

0.0 0.0 0.0 9 KB

GitHub Action to Test Airflow Dags

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

License: MIT License

Dockerfile 7.40% Shell 26.32% Python 66.28%

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 supporting only Airflow v2.0.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/airflow-dags-test-action@master
    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.

airflow-dags-test-action's People

Contributors

micael-grilo avatar

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.