-
Notifications
You must be signed in to change notification settings - Fork 238
45 lines (42 loc) · 1.36 KB
/
run-matrix.yml
File metadata and controls
45 lines (42 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: run-matrix
on:
workflow_call:
inputs:
include:
required: true
description: Matrix include JSON string
type: string
permissions:
contents: read
jobs:
docker:
name: "docker (version: ${{ matrix.version }}, framework: ${{ matrix.framework }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 10
matrix:
include: ${{ fromJSON(inputs.include) }}
env:
# These env variables are used in the docker-compose.yml and the run_tests.sh script.
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/apm-agent-python-testing
steps:
- uses: actions/checkout@v6
- name: Run tests
run: ./tests/scripts/docker/run_tests.sh ${{ matrix.version }} ${{ matrix.framework }}
env:
LOCALSTACK_VOLUME_DIR: localstack_data
- if: success() || failure()
name: Upload JUnit Test Results
uses: actions/upload-artifact@v6
with:
name: test-results-${{ matrix.framework }}-${{ matrix.version }}
path: "**/*-python-agent-junit.xml"
- if: success() || failure()
name: Upload Coverage Reports
uses: actions/upload-artifact@v6
with:
name: coverage-reports-${{ matrix.framework }}-${{ matrix.version }}
path: "**/.coverage*"
include-hidden-files: true