From 480ffc8de6dbd869c88f014d7fb1ab3032b0b1da Mon Sep 17 00:00:00 2001 From: lumin Date: Thu, 19 Dec 2024 19:26:29 +0900 Subject: [PATCH] chore: update GitHub Actions and Python versions Update the GitHub Actions checkout and setup-python versions to v4 and v5 respectively. Add Python 3.13 to the testing matrix in both the workflow and pyproject.toml to ensure compatibility with the latest Python release. --- .github/workflows/tests.yml | 23 ++++++++++------------- pyproject.toml | 3 +++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8aa6d189..c91ab76a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,22 +4,19 @@ on: [pull_request] jobs: tests: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: | - 3.10 - 3.11 - 3.12 - - name: Set up pip cache - if: runner.os == 'Linux' - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} - restore-keys: ${{ runner.os }}-pip- + python-version: ${{ matrix.python-version }} + - name: Install Hatch run: pipx install hatch + - name: Run tests run: hatch test diff --git a/pyproject.toml b/pyproject.toml index 3e14cec8..67d672bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,3 +81,6 @@ exclude_lines = [ [tool.hatch.build.targets.sdist] only-include = ["src/markitdown"] + +[[tool.hatch.envs.hatch-test.matrix]] +python = ["3.13", "3.12", "3.11", "3.10"]