File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 69
69
DBT_TEST_AAD_PRINCIPAL_1 : ${{ secrets.DBT_TEST_AAD_PRINCIPAL_1 }}
70
70
DBT_TEST_AAD_PRINCIPAL_2 : ${{ secrets.DBT_TEST_AAD_PRINCIPAL_2 }}
71
71
SQLSERVER_TEST_DRIVER : ' ODBC Driver ${{ matrix.msodbc_version }} for SQL Server'
72
- run : pytest -ra -v tests/functional --profile "${{ matrix.profile }}"
72
+ run : pytest -n auto - ra -v tests/functional --profile "${{ matrix.profile }}"
Original file line number Diff line number Diff line change 37
37
run : pip install -r dev_requirements.txt
38
38
39
39
- name : Run functional tests
40
- run : pytest -ra -v tests/functional --profile "ci_sql_server"
40
+ run : pytest -n auto - ra -v tests/functional --profile "ci_sql_server"
41
41
env :
42
42
DBT_TEST_USER_1 : DBT_TEST_USER_1
43
43
DBT_TEST_USER_2 : DBT_TEST_USER_2
Original file line number Diff line number Diff line change 33
33
run : pip install -r dev_requirements.txt
34
34
35
35
- name : Run unit tests
36
- run : pytest tests/unit
36
+ run : pytest -n auto -ra -v tests/unit
Original file line number Diff line number Diff line change @@ -39,17 +39,17 @@ linecheck: ## Checks for all Python lines 100 characters or more
39
39
.PHONY : unit
40
40
unit : # # Runs unit tests.
41
41
@\
42
- pytest -ra -v tests/unit
42
+ pytest -n auto - ra -v tests/unit
43
43
44
44
.PHONY : functional
45
45
functional : # # Runs functional tests.
46
46
@\
47
- pytest -ra -v tests/functional
47
+ pytest -n auto - ra -v tests/functional
48
48
49
49
.PHONY : test
50
50
test : # # Runs unit tests and code checks against staged changes.
51
51
@\
52
- pytest -v tests/unit; \
52
+ pytest -n auto -ra - v tests/unit; \
53
53
pre-commit run black-check --hook-stage manual | grep -v " INFO" ; \
54
54
pre-commit run flake8-check --hook-stage manual | grep -v " INFO" ; \
55
55
pre-commit run mypy-check --hook-stage manual | grep -v " INFO"
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ pre-commit==3.3.1;python_version>="3.8"
6
6
pytest-dotenv==0.5.2
7
7
dbt-tests-adapter~=1.4.5
8
8
flaky==3.7.0
9
+ pytest-xdist==3.3.0
9
10
-e .
You can’t perform that action at this time.
0 commit comments