docs: Add contributor reward guidelines for BabelDOC project #418
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/checkout@v4 | |
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@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Run tests | |
run: | | |
uv run babeldoc --help | |
uv run babeldoc --bing --files examples/ci/test.pdf |