From 50d922e43c59ba1221701dade7cb072e00b5ef42 Mon Sep 17 00:00:00 2001 From: Giuseppe Ambrosio Date: Thu, 5 Dec 2024 15:24:10 +0100 Subject: [PATCH] feat(gh-actions): test action with python version matrix --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e84ef9..f43f687 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,9 @@ jobs: contents: read issues: write pull-requests: write + strategy: + matrix: + python-version: ["3.10", "3.11","3.12"] steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -21,11 +24,11 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: "3.12" + python-version: ${{ matrix.python-version }} - name: Install the latest version of uv and set the python version to 3.12 uses: astral-sh/setup-uv@v4 with: - python-version: "3.12" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: uv pip install .[cpu,dev] - name: Run test