-
Notifications
You must be signed in to change notification settings - Fork 46
51 lines (40 loc) · 1.21 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Tests
on:
- push
- pull_request
jobs:
tests:
name: Run pytest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
dbt-version: ["1.6.0", "1.7.0", "1.8.0"]
steps:
- name: Check out the repository
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "${{ matrix.python-version }}"
- 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