-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (32 loc) · 956 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Run Tests 🧪
on:
push:
pull_request:
branches: ["main"]
jobs:
test:
name: Run Python Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Cached models
id: cache-mods
uses: actions/cache@v3
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@v5
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