diff --git a/.github/workflows/ci_dbt_core_testing.yml b/.github/workflows/ci_dbt_core_testing.yml index 085bdb0d..d0daa56c 100644 --- a/.github/workflows/ci_dbt_core_testing.yml +++ b/.github/workflows/ci_dbt_core_testing.yml @@ -102,12 +102,11 @@ jobs: with: python-version: "3.11" - - name: Install python dependencies + - name: "Install python tools & dependencies" run: | python -m pip install --user --upgrade pip python -m pip --version - python -m pip install tox - tox --version + python -m pip install -r dev-requirements.txt -r editable-requirements.txt - name: "Update the version of dbt-common" run: | @@ -116,10 +115,8 @@ jobs: - name: "Check installed versions" run: pip freeze - - name: Run tox - unit tests - env: - TOXENV: "unit" - run: tox + - name: Run unit tests + run: python -m pytest tests/unit dbt-core-integration-metadata: name: integration test metadata generation @@ -172,16 +169,10 @@ jobs: split-group: ${{ fromJson(needs.dbt-core-integration-metadata.outputs.split-groups) }} include: ${{ fromJson(needs.dbt-core-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 DBT_TEST_USER_3: dbt_test_user_3 - # DD_CIVISIBILITY_AGENTLESS_ENABLED: true - # DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} TODO: set this up - # DD_SITE: datadoghq.com - # DD_ENV: ci - DD_SERVICE: ${{ github.event.repository.name }} steps: - name: Check out the repository @@ -207,12 +198,11 @@ jobs: if: runner.os == 'Windows' uses: ./.github/actions/setup-postgres-windows - - name: Install python tools + - name: "Install python tools & dependencies" run: | python -m pip install --user --upgrade pip python -m pip --version - python -m pip install tox - tox --version + python -m pip install -r dev-requirements.txt -r editable-requirements.txt - name: "Update the version of dbt-common" run: | @@ -222,7 +212,10 @@ jobs: run: pip freeze - name: Run tests - run: tox -- --ddtrace + run: | + python -m pytest {posargs} tests/functional -k "not tests/functional/graph_selection" + python -m pytest {posargs} tests/functional/graph_selection + python -m pytest {posargs} tests/adapter env: PYTEST_ADDOPTS: ${{ format('--splits {0} --group {1}', env.PYTHON_INTEGRATION_TEST_WORKERS, matrix.split-group) }}