-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (41 loc) · 1.03 KB
/
check.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
name: check
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
checks:
name: pre-commit hooks
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3.6.0
- name: python-action
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: poetry-action
uses: snok/install-poetry@v1
with:
installer-parallel: true
- name: poetry-install
run: poetry install
- name: dbt-action
uses: mwhitaker/dbt-action@master
with:
dbt_command: "dbt deps --project-dir dbts/ --profiles-dir dbts/"
- name: precommit-action
uses: pre-commit/action@v3.0.0
env:
SKIP: sqlfluff-fix,sqlfluff-lint
with:
extra_args: --color=always --show-diff-on-failure
- name: pytest
run: |
make test;