Skip to content

Commit

Permalink
add auto instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
romainkomorndatadog committed May 13, 2024
1 parent 0c9a3ad commit 04b512b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 139 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gh_auto_instrument.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: GHA auto-instrumented Tests
on:
push:
branches:
- main
jobs:
tests:
name: ${{ matrix.name }}
environment: ci
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: Linux, python: '3.12', os: ubuntu-latest }
# - {name: Windows, python: '3.12', os: windows-latest}
# - {name: Mac, python: '3.12', os: macos-latest}
# - {name: '3.11', python: '3.11', os: ubuntu-latest}
# - {name: '3.10', python: '3.10', os: ubuntu-latest}
# - {name: '3.9', python: '3.9', os: ubuntu-latest}
# - {name: '3.8', python: '3.8', os: ubuntu-latest}
# - {name: 'PyPy', python: 'pypy-3.10', os: ubuntu-latest}
# - {name: 'Minimum Versions', python: '3.12', os: ubuntu-latest}
# - {name: 'Development Versions', python: '3.8', os: ubuntu-latest}
# - {name: Typing, python: '3.12', os: ubuntu-latest}
steps:
- name: Configure Datadog Test Visibility
uses: nikita-tkachenko-datadog/gha-composite-test@v44
with:
languages: python
service-name: flask-auto-instrumented
api-key: ${{ secrets.DD_API_KEY }}
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: requirements*/*.txt
- run: pip install -r requirements/test.txt -e .
- run: pytest
21 changes: 0 additions & 21 deletions .github/workflows/lock.yaml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/publish.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/tests.yaml

This file was deleted.

0 comments on commit 04b512b

Please sign in to comment.