Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

DRAFT: Feature/support dbt core1.8 #307

DRAFT: Feature/support dbt core1.8

DRAFT: Feature/support dbt core1.8 #307

Workflow file for this run

name: fal pytest
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
paths:
- "projects/adapter/**"
- ".github/actions/setup-local-fal/**"
- ".github/workflows/test_cli.yml"
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python:
- "3.8"
# - "3.9"
- "3.10"
# - "3.11"
dbt:
- "1.7.*"
# Run only the latest commit pushed to PR
concurrency:
group: "${{ github.ref }}-${{ github.workflow }}-${{ matrix.dbt }}-${{ matrix.python }}"
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- name: Setup local fal
uses: ./.github/actions/setup-local-fal
with:
python: ${{ matrix.python }}
dbt: ${{ matrix.dbt }}
adapter: postgres
- name: Start Docker database
working-directory: projects/adapter/tests
run: docker-compose up -d
- name: Setup pytest
run: pip install pytest pytest-mock mock black
- name: Run dbt
working-directory: projects/adapter
run: dbt run --profiles-dir tests/mock/mockProfile/ --project-dir tests/mock
- name: Run tests
working-directory: projects/adapter
env:
FAL_STATS_ENABLED: false
DBT_TARGET_PATH: mockTarget
run: pytest tests -s