From 0f5aaf850ff6fb4809f1d1790b445ae98e47cce2 Mon Sep 17 00:00:00 2001 From: Avior Date: Wed, 25 Sep 2024 22:07:05 +0200 Subject: [PATCH] chore: Add automatic version matrix --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6cd8dd..59579f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,11 +10,20 @@ on: - master jobs: + create_matrix: + runs-on: ubuntu-latest + steps: + - id: matrix + uses: JLLeitschuh/endoflife-matrix-action@v1 + with: + product: python + outputs: + version_matrix: ${{ steps.matrix.outputs.versions }} build_and_test: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ${{ fromJson(needs.create_matrix.outputs.version_matrix) }} runs-on: ubuntu-latest steps: - name: Checkout