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.
This commit is contained in:
lumin 2024-12-19 19:26:29 +09:00 committed by GitButler
parent f94d09990e
commit fde036f08f
2 changed files with 12 additions and 12 deletions

View file

@ -4,22 +4,19 @@ on: [pull_request]
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - name: Set up Python
uses: actions/setup-python@v5
with: with:
python-version: | python-version: ${{ matrix.python-version }}
3.10
3.11
3.12
- name: Set up pip cache
if: runner.os == 'Linux'
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install Hatch - name: Install Hatch
run: pipx install hatch run: pipx install hatch
- name: Run tests - name: Run tests
run: hatch test run: hatch test

View file

@ -81,3 +81,6 @@ exclude_lines = [
[tool.hatch.build.targets.sdist] [tool.hatch.build.targets.sdist]
only-include = ["src/markitdown"] only-include = ["src/markitdown"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.13", "3.12", "3.11", "3.10"]