From 04e18b9f6d0ed70f13f1a5ceda25c5d41d96eed6 Mon Sep 17 00:00:00 2001 From: Jayant-kernel Date: Mon, 9 Mar 2026 03:00:05 +0530 Subject: [PATCH] ci: update test matrix to Python 3.10-3.12, fix torch version Fixes #85. The CI workflow was running on Python 3.8 despite pyproject.toml declaring requires-python >=3.10. Also updates the torch installation from the unsupported 1.8.1+cpu to 2.3.0+cpu and bumps actions/checkout and actions/setup-python to latest versions. --- .github/workflows/ci-tests.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 494f9c4..c7a5abb 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -9,14 +9,17 @@ on: [push, pull_request] jobs: tests: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12"] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: ${{ matrix.python-version }} - name: Install pdm run: | @@ -25,7 +28,7 @@ jobs: - name: Install torch run: | - python -m pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html + python -m pip install torch==2.3.0+cpu --index-url https://download.pytorch.org/whl/cpu - name: Install package (including dev dependencies) run: |