Skip to content

Commit

Permalink
New ci-airflow image
Browse files Browse the repository at this point in the history
  • Loading branch information
BAntonellini committed Dec 10, 2024
1 parent ac535d2 commit 6da64a0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/integration_airflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest

# container: datacoves/ci-airflow-dbt-snowflake:3.2
container: datacoves/ci-airflow-dbt-snowflake:3.3.202412101420-bf2da3dd
container: datacoves/ci-airflow-dbt-snowflake:3.3.202412101431-d83b335a

env:
AIRFLOW__CORE__DAGS_FOLDER: /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/orchestrate/dags
Expand Down Expand Up @@ -56,16 +56,22 @@ jobs:
run: python /usr/app/test_dags.py --dag-loadtime-threshold 1 --check-variable-usage --write-output --filename results.md

# if write-output is set, the following step will run
- name: Comment PR
- name: Comment PR with Best Practices
uses: thollander/actions-comment-pull-request@v2
with:
filePath: /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/results.md
comment_tag: Datacoves
filePath: /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/airflow_output_best_practices.md
comment_tag: Best Practices

# - name: Custom Airflow Tests
# uses: ./.github/actions/pytest-with-warnings
# with:
# pytest_args: "$AIRFLOW__ARTIFACTS_PATH/test_dags/validate_dags.py"

- name: Custom Airflow Tests
run: "pytest $AIRFLOW__ARTIFACTS_PATH/test_dags/validate_dags.py"
run: pytest $AIRFLOW__ARTIFACTS_PATH/test_dags/validate_dags.py > airflow_output_custom_tests.txt

- name: Comment PR with Custom Tests Results
uses: thollander/actions-comment-pull-request@v2
with:
filePath: /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/airflow_output_custom_tests.txt
comment_tag: Custom Tests

0 comments on commit 6da64a0

Please sign in to comment.