Skip to content
 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and v2.2.2 and v2.4.3.

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@v2.4.3
    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.

About

GitHub Action to Test Airflow Dags

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages