checker.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. name: Checker
  3. # yamllint disable-line rule:truthy
  4. on:
  5. workflow_dispatch:
  6. schedule:
  7. - cron: "0 4 * * 5"
  8. concurrency:
  9. group: ${{ github.workflow }}
  10. cancel-in-progress: false
  11. permissions:
  12. contents: read
  13. env:
  14. PYTHON_VERSION: "3.13"
  15. jobs:
  16. search:
  17. if: github.repository_owner == 'searxng' || github.event_name == 'workflow_dispatch'
  18. name: Search
  19. runs-on: ubuntu-24.04-arm
  20. steps:
  21. - name: Setup Python
  22. uses: actions/setup-python@v5
  23. with:
  24. python-version: "${{ env.PYTHON_VERSION }}"
  25. - name: Checkout
  26. uses: actions/checkout@v4
  27. with:
  28. persist-credentials: "false"
  29. - name: Setup cache Python
  30. uses: actions/cache@v4
  31. with:
  32. key: "python-${{ env.PYTHON_VERSION }}-${{ runner.arch }}-${{ hashFiles('./requirements*.txt') }}"
  33. restore-keys: "python-${{ env.PYTHON_VERSION }}-${{ runner.arch }}-"
  34. path: "./local"
  35. - name: Setup venv
  36. run: make V=1 install
  37. - name: Search checker
  38. run: make search.checker