File tree 3 files changed +29
-3
lines changed
3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : snowflake_timetravel_table Black Checker
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ branches :
8
+ - ' **'
9
+
10
+ jobs :
11
+ check_black :
12
+ name : Check Black
13
+ runs-on : ubuntu-20.04
14
+ steps :
15
+ - uses : actions/checkout@v1
16
+ - name : Setup Python
17
+ uses : actions/setup-python@v2
18
+ with :
19
+ python-version : 3.8
20
+ - name : Install Tox
21
+ run : pip install tox
22
+ - name : Run Black
23
+ run : tox -e black
Original file line number Diff line number Diff line change 15
15
test :
16
16
tox
17
17
18
+ check-black :
19
+ tox -e black
20
+
18
21
black :
19
22
black --line-length 120 integration_tests/tests
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
# use skipsdist=True to avoid needing a setup.py, since the thing we are testing is NOT a python package.
3
3
skipsdist = True
4
- envlist = py38-dbt{018,019}-int, py38-black
4
+ envlist = py38-dbt{018,019}-int
5
5
6
6
[pytest]
7
7
testpaths =
8
8
integration_tests/tests
9
9
10
- [testenv:py38-dbt{018,019}-int ]
10
+ [testenv]
11
11
setenv =
12
12
DISPLAY ={env:DISPLAY:}
13
13
SNOWFLAKE_TEST_ACCOUNT ={env:SNOWFLAKE_TEST_ACCOUNT:}
@@ -31,6 +31,6 @@ commands =
31
31
dbt run --project-dir integration_tests/run_project --profiles-dir ' ../test_profile'
32
32
pytest {posargs}
33
33
34
- [testenv:py38- black]
34
+ [testenv:black]
35
35
deps = black
36
36
commands = black --line-length 120 --check --diff integration_tests/tests
You can’t perform that action at this time.
0 commit comments