Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defaults:
# top-level adjustments can be made here
env:
# number of parallel processes to spawn for python integration testing
PYTHON_INTEGRATION_TEST_WORKERS: 5
PYTHON_INTEGRATION_TEST_WORKERS: 15

jobs:
code-quality:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/structured-logging-schema-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions: read-all
# top-level adjustments can be made here
env:
# number of parallel processes to spawn for python testing
PYTHON_INTEGRATION_TEST_WORKERS: 5
PYTHON_INTEGRATION_TEST_WORKERS: 15

jobs:
integration-metadata:
Expand Down
10 changes: 8 additions & 2 deletions core/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,18 @@ DBT_TEST_USER_1 = "dbt_test_user_1"
DBT_TEST_USER_2 = "dbt_test_user_2"
DBT_TEST_USER_3 = "dbt_test_user_3"


# Note: graph_selection, defer_state, partial_parsing and sources tests are run after the majority of other tests as they are known to be slow (by necessity) and should be split across workers when multiple workers are present.

[envs.ci.scripts]
unit-tests = "python -m pytest --cov=dbt --cov-report=xml {args} ../tests/unit"
code-quality = "pre-commit run --all-files"
integration-tests = """
python -m pytest --cov=dbt --cov-append --cov-report=xml {args} ../tests/functional -k "not tests/functional/graph_selection" && \
python -m pytest --cov=dbt --cov-append --cov-report=xml {args} ../tests/functional/graph_selection
python -m pytest --cov=dbt --cov-append --cov-report=xml {args} ../tests/functional -k "not tests/functional/graph_selection" -k "not tests/functional/defer_state" -k "not tests/functional/partial_parsing" -k "not tests/functional/sources" && \
python -m pytest --cov=dbt --cov-append --cov-report=xml {args} ../tests/functional/graph_selection && \
python -m pytest --cov=dbt --cov-append --cov-report=xml {args} ../tests/functional/defer_state && \
python -m pytest --cov=dbt --cov-append --cov-report=xml {args} ../tests/functional/partial_parsing && \
python -m pytest --cov=dbt --cov-append --cov-report=xml {args} ../tests/functional/sources
"""

# Note: Python version matrix is handled by GitHub Actions CI, not hatch.
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/init/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_init_task_in_project_with_existing_profiles_yml(
"""
)

def test_init_task_in_project_specifying_profile_errors(self):
def test_init_task_in_project_specifying_profile_errors(self, project):
with pytest.raises(DbtRuntimeError) as error:
run_dbt(["init", "--profile", "test"], expect_pass=False)
assert "Can not init existing project with specified profile" in str(error)
Expand Down
Loading