Merge pull request #30 from funstory-ai/develop #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests 🧪 | |
on: | |
push: | |
pull_request: | |
branches: ["main"] | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
test: | |
name: Run Python Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Cached models | |
id: cache-mods | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/huggingface/hub/models--wybxc--DocLayout-YOLO-DocStructBench-onnx | |
key: ${{runner.os}}-huggingmodel-wybxc--DocLayout-YOLO-DocStructBench-onnx | |
- name: Setup uv with Python ${{ matrix.python-version }} | |
uses: astral-sh/setup-uv@b5f58b2abc5763ade55e4e9d0fe52cd1ff7979ca # v5.2.1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Run tests | |
run: | | |
uv run yadt --help | |
uv run yadt --bing --files examples/ci/test.pdf |