diff --git a/.github/workflows/scripts/table_test.py b/.github/workflows/scripts/table_test.py index 41a50ff9..7c520612 100644 --- a/.github/workflows/scripts/table_test.py +++ b/.github/workflows/scripts/table_test.py @@ -134,7 +134,8 @@ def get_materialization_flow_id(backend: Backend, auth_token: str): arg_parser.add_argument( "--materialization-label", type=str, - required=True, + required=False, + default="basedosdados-dev", help="Materialization label.", ) diff --git a/.github/workflows/test_dbt_model.yaml b/.github/workflows/test_dbt_model.yaml index 2c27951e..5a04febb 100644 --- a/.github/workflows/test_dbt_model.yaml +++ b/.github/workflows/test_dbt_model.yaml @@ -36,9 +36,9 @@ jobs: python -m pip install --upgrade pip pip install -r requirements-actions.txt - - name: Run script for syncing DBT schema + - name: Run script to test DBT model run: | - python .github/workflows/scripts/table_test.py --modified-files ${{ steps.changed-files.outputs.all_modified_files }} --graphql-url ${{ secrets.BACKEND_GRAPHQL_URL }} + python .github/workflows/scripts/table_test.py --modified-files ${{ steps.changed-files.outputs.all_modified_files }} --graphql-url ${{ secrets.BACKEND_GRAPHQL_URL }} --prefect-backend-token ${{ secrets.PREFECT_BACKEND_TOKEN }} - name: Commit changed files uses: stefanzweifel/git-auto-commit-action@v4