Repository navigation
fix(deps): vuln minor: idna, requests [tests/integration/requirements.txt] #776
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Layers for system-Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| python-versions: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| versions: ${{ steps.load.outputs.versions }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Load Python versions | |
| id: load | |
| run: | | |
| # system_tests: false versions are skipped. dd-trace-py main no longer | |
| # publishes wheels for them (currently 3.8). | |
| echo "versions=$(yq -o=json -I=0 '[.versions[] | select(.system_tests != false) | .version]' python_versions.yaml)" >> "$GITHUB_OUTPUT" | |
| build: | |
| needs: python-versions | |
| runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: [arm64, amd64] | |
| python_version: ${{ fromJSON(needs.python-versions.outputs.versions) }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Download ddtrace Wheel | |
| id: find-ddtrace-wheel | |
| run: | | |
| # Convert matrix.arch into pip platform tag | |
| if [ "${{ matrix.arch }}" = "amd64" ]; then | |
| PLATFORM_TAG="manylinux_2_17_x86_64" | |
| else | |
| PLATFORM_TAG="manylinux_2_17_aarch64" | |
| fi | |
| pip download --no-index --no-deps --find-links https://dd-trace-py-builds.s3.amazonaws.com/main/index.html --pre --python-version "${{ matrix.python_version}}" --platform "${PLATFORM_TAG}" ddtrace | |
| echo "wheel_path=$(find . -name "*.whl" | head -n 1)" >> $GITHUB_OUTPUT | |
| - name: Build layer for Python ${{ matrix.python_version }} on ${{ matrix.arch }} | |
| run: | | |
| echo "Building layer for Python ${{ matrix.python_version }} on ${{ matrix.arch }}" | |
| ARCH=${{ matrix.arch }} PYTHON_VERSION=${{ matrix.python_version }} DD_TRACE_WHEEL="${{ steps.find-ddtrace-wheel.outputs.wheel_path }}" ./scripts/build_layers.sh | |
| - name: Upload layer artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: .layers/datadog_lambda_py-${{ matrix.arch }}-${{ matrix.python_version }}.zip | |
| name: datadog-lambda-python-${{ matrix.python_version }}-${{ matrix.arch }} |