Skip to content
30 changes: 27 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,40 @@ on: [pull_request]

jobs:
tests:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os.runs-on }}
strategy:
fail-fast: false
matrix:
os:
- runs-on: windows-latest
arch: win-x64
- runs-on: windows-11-arm
arch: win-arm64
- runs-on: macos-15-intel
arch: osx-x64
- runs-on: macos-15
arch: osx-arm64
- runs-on: ubuntu-latest
arch: linux-x64
- runs-on: ubuntu-24.04-arm
arch: linux-arm64
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: |
3.10
3.11
3.12
- name: Show default python version
run: python --version
- name: Show OS encoding
run: "python -c \"import locale;print('System encoding: ', locale.getpreferredencoding())\""
- name: Install pipx
run: python -m pip install --user pipx
- name: Install Hatch
run: pipx install hatch
run: python -m pipx install hatch
- name: Install markitdown in editable mode
run: python -m pip install -e .[all]
working-directory: packages/markitdown
- name: Run tests
run: cd packages/markitdown; hatch test