Skip to content

Try datadog test optimization #342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/datadog_test_optimization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Datadog Test Optimization

permissions:
checks: write
contents: read

on: push

env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_DESTINATION_API_KEY: ${{ secrets.DD_DESTINATION_API_KEY }}
DD_DESTINATION_APP_KEY: ${{ secrets.DD_DESTINATION_APP_KEY }}
DD_DESTINATION_API_URL: ${{ secrets.DD_DESTINATION_API_URL }}
DD_SOURCE_API_KEY: ${{ secrets.DD_SOURCE_API_KEY }}
DD_SOURCE_APP_KEY: ${{ secrets.DD_SOURCE_APP_KEY }}
DD_SOURCE_API_URL: ${{ secrets.DD_SOURCE_API_URL }}
RECORD: false

jobs:
test-optimization:
runs-on: ubuntu-latest
steps:
- name: Install Python
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c
with:
python-version: 3.12
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install requirements
run: |
python -m pip install .
python -m pip install -r scripts/test_requirements.txt
- name: Configure Datadog Test Optimization
uses: datadog/test-visibility-github-action@fa5d4c02a5f2329cf2c62a70fd8ec532317af1c9
with:
languages: python
api_key: ${{env.DD_API_KEY}}
site: datadoghq.com
- name: Run tests
shell: bash
run: pytest
18 changes: 18 additions & 0 deletions scripts/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
boto3==1.35.91
click==8.1.7
configobj==5.0.8
deepdiff==6.7.1
aiohttp==3.9.5
tqdm==4.66.2
certifi>=2022.12.7
python-dateutil
setuptools>=67.6.0
setuptools_scm
ddtrace==2.21.1
black==24.3.0
pytest==8.1.1
pytest-black
pytest-console-scripts
pytest-recording
vcrpy@git+https://github.com/skarimo/vcrpy.git
freezegun==1.5.0