You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Airflow DAGs Test
v2.7.2
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 and v2.7.2
Place in a .yml
file such as this one in your .github/workflows
folder. Refer to the documentation on workflow YAML syntax here.
- '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
Inspired by jayamanikharyono airflow-dag-action.
Contributions are very welcome. You can follow this standard contributions guidelines to contribute code.
This project is distributed under the MIT license.