benchmark.yml 894 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
  2. # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
  3. name: PDF
  4. on:
  5. push:
  6. branches:
  7. - master
  8. paths-ignore:
  9. - "cmds/**"
  10. - "**.md"
  11. jobs:
  12. pdf-test:
  13. runs-on: pdf
  14. timeout-minutes: 20
  15. strategy:
  16. fail-fast: true
  17. matrix:
  18. python-version: ["3.12"]
  19. steps:
  20. - name: PDF benchmark
  21. uses: actions/checkout@v4
  22. with:
  23. fetch-depth: 0
  24. - name: init_python
  25. run: |
  26. conda activate base
  27. - name: install-dependency
  28. run: |
  29. if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
  30. - name: benchmark
  31. run: |
  32. python ocr_badcase.py pdf_json_label_0306.json ocr_dataset.json json_files.zip output.json