Skip to content

Commit 86b69c9

Browse files
committed
make testing faster by running multithreaded
1 parent 924c9d8 commit 86b69c9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/integration-tests-azure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ jobs:
6969
DBT_TEST_AAD_PRINCIPAL_1: ${{ secrets.DBT_TEST_AAD_PRINCIPAL_1 }}
7070
DBT_TEST_AAD_PRINCIPAL_2: ${{ secrets.DBT_TEST_AAD_PRINCIPAL_2 }}
7171
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 }}"

.github/workflows/integration-tests-sqlserver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: pip install -r dev_requirements.txt
3838

3939
- 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"
4141
env:
4242
DBT_TEST_USER_1: DBT_TEST_USER_1
4343
DBT_TEST_USER_2: DBT_TEST_USER_2

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
run: pip install -r dev_requirements.txt
3434

3535
- name: Run unit tests
36-
run: pytest tests/unit
36+
run: pytest -n auto -ra -v tests/unit

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ linecheck: ## Checks for all Python lines 100 characters or more
3939
.PHONY: unit
4040
unit: ## Runs unit tests.
4141
@\
42-
pytest -ra -v tests/unit
42+
pytest -n auto -ra -v tests/unit
4343

4444
.PHONY: functional
4545
functional: ## Runs functional tests.
4646
@\
47-
pytest -ra -v tests/functional
47+
pytest -n auto -ra -v tests/functional
4848

4949
.PHONY: test
5050
test: ## Runs unit tests and code checks against staged changes.
5151
@\
52-
pytest -v tests/unit; \
52+
pytest -n auto -ra -v tests/unit; \
5353
pre-commit run black-check --hook-stage manual | grep -v "INFO"; \
5454
pre-commit run flake8-check --hook-stage manual | grep -v "INFO"; \
5555
pre-commit run mypy-check --hook-stage manual | grep -v "INFO"

0 commit comments

Comments
 (0)