From 54673202438da1e361ef6970d9988fce06d284bc Mon Sep 17 00:00:00 2001 From: Michael Shin Date: Wed, 25 Nov 2026 11:43:37 -0500 Subject: [PATCH] [CI] Test supported Python versions and fail on deprecations --- .github/workflows/unit_tests.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index b924aebf..26ca376c 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - name: Unit tests on: @@ -12,15 +9,18 @@ permissions: jobs: build: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 + - uses: actions/checkout@v6 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install package run: | python -m pip install --upgrade pip @@ -29,4 +29,4 @@ jobs: - name: Test with pytest run: | cd ./tests - pytest --sanity + pytest --sanity -W error::DeprecationWarning