Release v20260413 #607
This file contains hidden or 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
| name: CI Linting | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - "release*" | |
| env: | |
| DBT_DEFAULT_PROFILE_TARGET: stellar_dbt_public | |
| DBT_TARGET: prod | |
| DBT_DATASET: crypto_stellar | |
| DBT_PROJECT: crypto-stellar | |
| DBT_PROFILES_DIR: ${{ github.workspace }} | |
| DBT_MAX_BYTES_BILLED: 1000000000000 | |
| DBT_JOB_TIMEOUT: 300 | |
| DBT_THREADS: 1 | |
| DBT_JOB_RETRIES: 1 | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| if: >- | |
| github.event.pull_request.merged == false && | |
| github.event.pull_request.state == 'open' | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.13 | |
| - id: file_changes | |
| uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4 | |
| with: | |
| output: " " | |
| - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | |
| env: | |
| extra_args: --color=always --files ${{ steps.file_changes.outputs.files}} | |
| SKIP: sqlfluff-lint,sqlfluff-fix, cleanup | |
| diff-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 # Fetch all history | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: 3.13 | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| dbt deps | |
| - name: Authenticate to GCP | |
| uses: "google-github-actions/auth@140bb5113ffb6b65a7e9b937a81fa96cf5064462" | |
| with: | |
| credentials_json: "${{ secrets.CREDS_TEST_HUBBLE }}" | |
| - name: Checkout source branch and diff quality | |
| run: | | |
| git checkout ${{ github.head_ref }} | |
| diff-quality --violations=sqlfluff --exclude incremental_accepted_values.sql int_account_balances__contracts.sql --compare-branch=origin/master --fail-under=95 |