Skip to content

Commit 28f3912

Browse files
committed
add matrix version python
1 parent f2485c4 commit 28f3912

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ jobs:
174174

175175
# ------------------------------------------ Integration Tests ------------------------------------------
176176
integration-tests:
177+
strategy:
178+
matrix:
179+
python-version:
180+
- "3.9"
181+
- "3.10"
182+
- "3.11"
183+
- "3.12"
184+
- "3.13"
177185
if: |
178186
always() && !cancelled() &&
179187
!contains(needs.*.result, 'failure') &&
@@ -186,10 +194,10 @@ jobs:
186194
steps:
187195
- name: "Check out repository code"
188196
uses: "actions/checkout@v4"
189-
- name: Set up Python
197+
- name: Set up Python ${{ matrix.python-version }}
190198
uses: actions/setup-python@v5
191199
with:
192-
python-version: "3.12"
200+
python-version: ${{ matrix.python-version }}
193201
- name: "Setup environment"
194202
run: |
195203
pipx install poetry
@@ -201,6 +209,6 @@ jobs:
201209
run: "poetry run pytest --cov infrahub_sdk tests/integration/"
202210
- name: "Upload coverage to Codecov"
203211
run: |
204-
codecov --flags integration-tests
212+
codecov --flags integration-tests-${{ matrix.python-version }}
205213
env:
206214
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)