Skip to content

Commit

Permalink
chore: update GitHub Actions and Python versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
l-lumin authored and gitbutler-client committed Dec 19, 2024
1 parent 925c449 commit 480ffc8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 480ffc8

Please sign in to comment.