Skip to content

Commit

Permalink
fix circleci tests (forcing azure pipeline tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Wigley committed Mar 28, 2021
1 parent 335a882 commit ba03988
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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

Expand Down
5 changes: 5 additions & 0 deletions test/rpc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:/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()
Expand Down

0 comments on commit ba03988

Please sign in to comment.