forked from fal-ai/dbt-fal
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.18 KB
/
pytest.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
52
53
54
name: Run Tests
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'LICENSE'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.8.x"]
dbt: ["0.20.1", "0.21.1", "1.0.0"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Start test Docker database
working-directory: tests
run: docker-compose up -d
- uses: abatilo/[email protected]
with:
poetry-version: "1.1.4"
- name: Install fal
run: |
poetry install
- name: Install dbt
run: |
if [[ '${{ matrix.dbt }}' =~ ^0.*$ ]]
then
poetry run pip install dbt==${{ matrix.dbt }}
else
poetry run pip install dbt-postgres==${{ matrix.dbt }}
fi
- name: Run dbt
run: |
poetry run dbt run --profiles-dir tests/mock/mockProfile/ --project-dir tests/mock
- name: Test
run: poetry run pytest -s