Skip to content

Commit 8b202d6

Browse files
committed
WIP: Run CI tests against multiple versions
1 parent dbbe385 commit 8b202d6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ jobs:
183183
runs-on:
184184
group: "huge-runners"
185185
timeout-minutes: 30
186+
strategy:
187+
matrix:
188+
version: ["1.0.0", "1.1.0"]
186189
steps:
187190
- name: "Check out repository code"
188191
uses: "actions/checkout@v4"
@@ -201,8 +204,13 @@ jobs:
201204
pip install invoke toml codecov
202205
- name: "Install Package"
203206
run: "poetry install --all-extras"
207+
- name: "Set environment variables for python_testcontainers"
208+
run: |
209+
echo INFRAHUB_TESTING_IMAGE_VER=${{ matrix.version }} >> $GITHUB_ENV
204210
- name: "Integration Tests"
205-
run: "poetry run pytest --cov infrahub_sdk tests/integration/"
211+
run: |
212+
echo "Running tests for version: ${{ matrix.version }}"
213+
poetry run pytest --cov infrahub_sdk tests/integration/
206214
- name: "Upload coverage to Codecov"
207215
run: |
208216
codecov --flags integration-tests

0 commit comments

Comments
 (0)