benchmark.yml 847 B

123456789101112131415161718192021222324252627282930313233343536
  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. steps:
  18. - name: PDF benchmark
  19. uses: actions/checkout@v4
  20. with:
  21. fetch-depth: 0
  22. - name: init_python
  23. run: |
  24. conda activate base
  25. - name: install-dependency
  26. run: |
  27. if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
  28. - name: benchmark
  29. run: |
  30. python ocr_badcase.py pdf_json_label_0306.json ocr_dataset.json json_files.zip output.json