Skip to content

Commit

Permalink
add datadog env vars (#539) (#545)
Browse files Browse the repository at this point in the history
* add datadog env vars

* move end vars
# Conflicts:
#	dev-requirements.txt
  • Loading branch information
emmyoop authored Jul 20, 2023
1 parent 595f4cb commit 2a5b4b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ jobs:
TOXENV: integration-${{ matrix.adapter }}
PYTEST_ADDOPTS: "-v --color=yes -n4 --csv integration_results.csv"
DBT_INVOCATION_ENV: github-actions
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
DD_SITE: datadoghq.com
DD_ENV: ci
DD_SERVICE: ${{ github.event.repository.name }}

steps:
- name: Check out the repository
Expand Down Expand Up @@ -171,7 +176,7 @@ jobs:
DBT_TEST_USER_1: dbt_test_user_1
DBT_TEST_USER_2: dbt_test_user_2
DBT_TEST_USER_3: dbt_test_user_3
run: tox
run: tox -- --ddtrace

- uses: actions/upload-artifact@v3
if: always()
Expand Down
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git+https://github.com/dbt-labs/[email protected]#egg=dbt-postgres&subdire
black~=22.8.0
click~=8.1.3
bumpversion~=0.6.0
ddtrace~=1.16
flake8
flaky~=3.7.0
freezegun~=0.3.12
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ passenv =
DBT_*
REDSHIFT_TEST_*
PYTEST_ADDOPTS
DD_SERVICE
DD_ENV
commands =
redshift: {envpython} -m pytest {posargs} -m profile_redshift tests/integration
redshift: {envpython} -m pytest {posargs} tests/functional
Expand Down

0 comments on commit 2a5b4b9

Please sign in to comment.