summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/checker.yml55
1 files changed, 35 insertions, 20 deletions
diff --git a/.github/workflows/checker.yml b/.github/workflows/checker.yml
index d0074712d..2de3c9896 100644
--- a/.github/workflows/checker.yml
+++ b/.github/workflows/checker.yml
@@ -1,31 +1,46 @@
-name: "Checker"
-on: # yamllint disable-line rule:truthy
+---
+name: Checker
+
+# yamllint disable-line rule:truthy
+on:
+ workflow_dispatch:
schedule:
- cron: "0 4 * * 5"
- workflow_dispatch:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref_name }}
+ cancel-in-progress: false
+
+permissions:
+ contents: read
+
+env:
+ PYTHON_VERSION: "3.13"
jobs:
- checker:
- name: Checker
- runs-on: ubuntu-24.04
+ search:
+ name: Search
+ runs-on: ubuntu-24.04-arm
steps:
+ - name: Setup Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: "${{ env.PYTHON_VERSION }}"
+
- name: Checkout
uses: actions/checkout@v4
+ with:
+ persist-credentials: "false"
- - name: Install Ubuntu packages
- run: |
- sudo ./utils/searxng.sh install packages
-
- - name: Set up Python
- uses: actions/setup-python@v5
+ - name: Setup cache Python
+ uses: actions/cache@v4
with:
- python-version: '3.13'
- architecture: 'x64'
+ key: "python-${{ env.PYTHON_VERSION }}-${{ runner.arch }}-${{ hashFiles('./requirements*.txt') }}"
+ restore-keys: "python-${{ env.PYTHON_VERSION }}-${{ runner.arch }}-"
+ path: "./local"
- - name: Install Python dependencies
- run: |
- make V=1 install
+ - name: Setup venv
+ run: make V=1 install
- - name: Checker
- run: |
- make search.checker
+ - name: Search checker
+ run: make search.checker