This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4eba507
commit a9db9be
Showing
1 changed file
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,13 +52,26 @@ This action assumes that your dbt project is in the top-level directory of your | |
## Airflow validation usage | ||
|
||
```yml | ||
- name: Test Airflow DAGs validity | ||
uses: datacoves/[email protected] | ||
with: | ||
command: "python /dagbag_validator.py" | ||
env: | ||
DATACOVES__YAML_DAGS_FOLDER: /path/to/yaml/dag/folder | ||
AIRFLOW__CORE__DAGS_FOLDER: /path/to/apache/dag/folder | ||
env: | ||
DATACOVES__REPO_PATH: /path/to/repo | ||
DATACOVES__YAML_DAGS_FOLDER: /path/to/airflow/yaml/files | ||
AIRBYTE__EXTRACT_LOCATION: /path/to/airbyte/extracted/files | ||
AIRFLOW__CORE__DAGS_FOLDER: /path/to/airflow/dags/location | ||
AIRFLOW__CORE__DAGBAG_IMPORT_TIMEOUT: 300 | ||
TEST_MODE: "True" # Necessary to avoid connection issues between Airflow and Airbyte | ||
steps: | ||
- name: Test DAG structure integrity (DagBag Loading) | ||
uses: datacoves/[email protected] | ||
with: | ||
command: "python /usr/app/load_dagbag.py" | ||
- name: Test DBT Sources against DAGs' YAML files | ||
uses: datacoves/[email protected] | ||
with: | ||
dbt_project_folder: "transform" | ||
command: "python /usr/app/test_dags.py" | ||
``` | ||
|
||
## Thanks | ||
|