-
Notifications
You must be signed in to change notification settings - Fork 222
41 lines (38 loc) · 1.17 KB
/
run-matrix.yml
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
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) }}
steps:
- uses: actions/checkout@v4
- 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@v4
with:
name: test-results-${{ matrix.framework }}-${{ matrix.version }}
path: "**/*-python-agent-junit.xml"
- if: success() || failure()
name: Upload Coverage Reports
uses: actions/upload-artifact@v4
with:
name: coverage-reports-${{ matrix.framework }}-${{ matrix.version }}
path: "**/.coverage*"
include-hidden-files: true