From ba03988b7a77d18c71865b348678f83179aeb8ba Mon Sep 17 00:00:00 2001 From: Kyle Wigley Date: Fri, 26 Mar 2021 16:12:53 -0400 Subject: [PATCH] fix circleci tests (forcing azure pipeline tests) --- .circleci/config.yml | 6 ++++++ test/rpc/conftest.py | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 21e5ff1e2bb..4303a729645 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,7 @@ jobs: - image: fishtownanalytics/test-container:11 environment: DBT_INVOCATION_ENV: circle + DOCKER_TEST_DATABASE_HOST: "database" TOX_PARALLEL_NO_SPINNER: 1 steps: - checkout @@ -39,6 +40,7 @@ jobs: - image: fishtownanalytics/test-container:11 environment: DBT_INVOCATION_ENV: circle + DOCKER_TEST_DATABASE_HOST: "database" TOX_PARALLEL_NO_SPINNER: 1 - image: postgres name: database @@ -59,6 +61,7 @@ jobs: - run: name: Postgres integration tests command: tox -p -e py36-postgres,py38-postgres -- -v -n4 + no_output_timeout: 30m - store_artifacts: path: ./logs integration-snowflake: @@ -68,6 +71,7 @@ jobs: - run: name: Snowflake integration tests command: tox -p -e py36-snowflake,py38-snowflake -- -v -n4 + no_output_timeout: 30m - store_artifacts: path: ./logs integration-redshift: @@ -77,6 +81,7 @@ jobs: - run: name: Redshift integration tests command: tox -p -e py36-redshift,py38-redshift -- -v -n4 + no_output_timeout: 30m - store_artifacts: path: ./logs integration-bigquery: @@ -86,6 +91,7 @@ jobs: - run: name: Bigquery integration test command: tox -p -e py36-bigquery,py38-bigquery -- -v -n4 + no_output_timeout: 30m - store_artifacts: path: ./logs diff --git a/test/rpc/conftest.py b/test/rpc/conftest.py index 54fc98dae1b..561c009f92e 100644 --- a/test/rpc/conftest.py +++ b/test/rpc/conftest.py @@ -13,6 +13,11 @@ def pytest_addoption(parser): '--profile', default='postgres', help='Use the postgres profile', ) +def pytest_runtest_setup(item): + # this is a hack in place to work around marking tests at the module level + # https://github.com/pytest-dev/pytest/issues/5830 + if os.name == 'nt': + pytest.skip('"dbt rpc" not supported on windows') def _get_item_profiles(item) -> Set[str]: supported = set()