Skip to content

Commit abf5893

Browse files
authored
DBT-787 First cut of setting up CI for dbt-impala
1 parent fdfb737 commit abf5893

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# This workflow will run unit, functional tests, code quality checks and verifies the build on all code committed to the repository.
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: dbt-impala tests
5+
on:
6+
push:
7+
branches:
8+
- master
9+
paths-ignore:
10+
- "**/*.md"
11+
pull_request:
12+
branches:
13+
- master
14+
paths-ignore:
15+
- "**/*.md"
16+
17+
jobs:
18+
code-quality:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: "Checkout the source code"
22+
uses: actions/checkout@v4
23+
24+
- name: "Install Python"
25+
uses: actions/setup-python@v5
26+
27+
- name: "Install dev requirements"
28+
run: pip install -r dev_requirements.txt
29+
30+
- name: "Run pre-commit checks"
31+
run: pre-commit run --all-files
32+
test:
33+
runs-on: ubuntu-latest
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
python:
38+
- "3.9"
39+
- "3.10"
40+
- "3.11"
41+
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
46+
- name: Setup Python
47+
uses: actions/setup-python@v5
48+
with:
49+
python-version: ${{ matrix.python }}
50+
51+
- name: Install tox
52+
run: pip install tox
53+
- name: Run tox
54+
# Run tox using the version of Python in `PATH`
55+
run: tox -e py
56+
57+
- name: Run dbt-impala tests on python ${{ matrix.python }}
58+
run: make test_all_python_versions

0 commit comments

Comments
 (0)