Skip to content

Commit

Permalink
remove tox dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Jan 31, 2024
1 parent 73464e1 commit 301aa7e
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/ci_dbt_core_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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) }}

Expand Down

0 comments on commit 301aa7e

Please sign in to comment.