Skip to content

Modify to test with multiple versions of dbt-core #119

Modify to test with multiple versions of dbt-core

Modify to test with multiple versions of dbt-core #119

Workflow file for this run

name: Tests
on:
- push
- pull_request
jobs:
tests:
name: Run pytest
runs-on: ubuntu-latest
strategy:
matrix:
# dbt-version: ["1.3.0", "1.4.0", "1.5.0", "1.6.0", "1.7.0"]
dbt-version: ["1.3.0", "1.4.0", "1.5.0"]
steps:
- name: Check out the repository
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Install dbt-core
run: |
poetry add dbt-core==${{ matrix.dbt-version }}
- name: Install required packages
run: | # install duckdb extras to be able to parse manifest
poetry install -E duckdb
- name: Parse manifest
run: |
poetry run dbt parse --project-dir demo_duckdb --profiles-dir demo_duckdb -t test
- name: Run pytest
run: |
poetry run python -m pytest