Skip to content

Commit

Permalink
first pass: split integration and adapter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Aug 3, 2023
1 parent 991618d commit 95d217d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-20.04]
tox-env: [integration, adapter]
split-group: ${{ fromJson(needs.integration-metadata.outputs.split-groups) }}
include: ${{ fromJson(needs.integration-metadata.outputs.include) }}
env:
TOXENV: integration
DBT_INVOCATION_ENV: github-actions
DBT_TEST_USER_1: dbt_test_user_1
DBT_TEST_USER_2: dbt_test_user_2
Expand Down Expand Up @@ -203,6 +203,7 @@ jobs:
- name: Run tests
run: tox -- --ddtrace
env:
TOXENV: ${{ matrix.tox-env }}
PYTEST_ADDOPTS: ${{ format('--splits {0} --group {1}', env.PYTHON_INTEGRATION_TEST_WORKERS, matrix.split-group) }}

- name: Get current date
Expand Down
19 changes: 18 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
skipsdist = True
envlist = unit,integration
envlist = unit,integration,adapter

[testenv:{unit,py38,py39,py310,py311,py}]
description = unit testing
Expand Down Expand Up @@ -33,3 +33,20 @@ commands =
deps =
-rdev-requirements.txt
-reditable-requirements.txt

[testenv:{adapter,py38-adapter,py39-adapter,py310-adapter,py311-adapter,py-adapter}]
description = adapter testing
download = true
skip_install = true
passenv =
DBT_*
POSTGRES_TEST_*
PYTEST_ADDOPTS
DD_SERVICE
DD_ENV
commands =
{envpython} -m pytest --cov=core --cov-append --cov-report=xml {posargs} tests/adapter

deps =
-rdev-requirements.txt
-reditable-requirements.txt

0 comments on commit 95d217d

Please sign in to comment.