Skip to content

Commit c9ba37f

Browse files
committed
matrix
1 parent 29af3f4 commit c9ba37f

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/sonarcloud.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ jobs:
1414
sonarcloud:
1515
name: SonarCloud
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: [3.10, 3.11]
1720

21+
1822
steps:
1923
- uses: actions/checkout@v4
2024
with:
@@ -25,9 +29,7 @@ jobs:
2529

2630
- uses: actions/setup-python@v5
2731
with:
28-
python-version: |
29-
3.10
30-
3.11
32+
python-version: ${{ matrix.python-version }}
3133
cache: 'poetry'
3234

3335
- name: Set up AWS credentials
@@ -95,6 +97,7 @@ jobs:
9597
"filenameprocessor-coverage.xml"
9698
9799
- name: Run unittest with recordprocessor-coverage (s)
100+
if: matrix.python-version == '3.10'
98101
working-directory: recordprocessor
99102
id: recordprocessor
100103
continue-on-error: true
@@ -104,6 +107,7 @@ jobs:
104107
"recordprocessor-coverage.xml"
105108
106109
- name: Run unittest with recordforwarder-coverage
110+
if: matrix.python-version == '3.11'
107111
working-directory: backend
108112
id: recordforwarder
109113
continue-on-error: true
@@ -113,6 +117,7 @@ jobs:
113117
"recordforwarder-coverage.xml"
114118
115119
- name: Run unittest with coverage-ack-lambda
120+
if: matrix.python-version == '3.10'
116121
working-directory: ack_backend
117122
id: acklambda
118123
continue-on-error: true
@@ -122,6 +127,7 @@ jobs:
122127
"ack-lambda.xml"
123128
124129
- name: Run unittest with coverage-delta
130+
if: matrix.python-version == '3.11'
125131
working-directory: delta_backend
126132
id: delta
127133
env:

0 commit comments

Comments
 (0)