Skip to content

fix: always try altimate-code check first + expand non_deterministic regex #6

fix: always try altimate-code check first + expand non_deterministic regex

fix: always try altimate-code check first + expand non_deterministic regex #6

Workflow file for this run

name: E2E Tests
on:
pull_request:
branches: [main]
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
e2e:
name: E2E (dbt ${{ matrix.dbt-version }}, py ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
dbt-version: ["1.7.0", "1.8.0", "1.9.0"]
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install "dbt-core==${{ matrix.dbt-version }}" dbt-duckdb
- name: Verify dbt installation
run: dbt --version
- name: Install altimate-code CLI
run: |
curl -fsSL https://raw.githubusercontent.com/AltimateAI/altimate-code/main/install.sh | bash
env:
ALTIMATE_CODE_INSTALL_DIR: /usr/local/bin
- name: Install JS dependencies
run: bun install --frozen-lockfile
- name: Build action
run: bun run build
- name: Run E2E tests
run: bun test test/e2e/
env:
DBT_VERSION: ${{ matrix.dbt-version }}
PYTHON_VERSION: ${{ matrix.python-version }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-results-dbt${{ matrix.dbt-version }}-py${{ matrix.python-version }}
path: |
test/e2e/results/
test/e2e/**/*.log
retention-days: 14
if-no-files-found: ignore
- name: Upload generated PR comments
if: always()
uses: actions/upload-artifact@v4
with:
name: pr-comments-dbt${{ matrix.dbt-version }}-py${{ matrix.python-version }}
path: test/e2e/output/
retention-days: 14
if-no-files-found: ignore