[mod] remove emojis from source code

This commit is contained in:
Alexandre Flament 2020-12-20 08:58:57 +01:00
parent 14c7cc0e11
commit f4983e7415
2 changed files with 22 additions and 22 deletions

View File

@ -11,26 +11,26 @@ jobs:
os: [ubuntu-latest] os: [ubuntu-latest]
python-version: [3.5, 3.6, 3.7, 3.8] python-version: [3.5, 3.6, 3.7, 3.8]
steps: steps:
- name: Checkout 🛎️ - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Ubuntu packages 🧰 - name: Install Ubuntu packages
run: | run: |
sudo ./utils/searx.sh install packages sudo ./utils/searx.sh install packages
sudo apt install firefox sudo apt install firefox
- name: Set up Python 🧰 - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: 'x64' architecture: 'x64'
- name: Install Python dependencies 🧰 - name: Install Python dependencies
run: | run: |
make V=1 install make V=1 install
make V=1 gecko.driver make V=1 gecko.driver
- name: Run tests 🏗️ - name: Run tests
run: make V=1 test run: make V=1 test
- name: Test coverage 🗺️ - name: Test coverage
run: make V=1 test.coverage run: make V=1 test.coverage
- name: Store coverage result 🗺️ - name: Store coverage result
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: coverage-${{ matrix.python-version }} name: coverage-${{ matrix.python-version }}
@ -41,33 +41,33 @@ jobs:
name: Themes name: Themes
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Ubuntu packages 🧰 - name: Install Ubuntu packages
run: sudo ./utils/searx.sh install packages run: sudo ./utils/searx.sh install packages
- name: Install node dependencies 🧰 - name: Install node dependencies
run: make V=1 node.env run: make V=1 node.env
- name: Build themes 🏗️ - name: Build themes
run: make V=1 themes run: make V=1 themes
documentation: documentation:
name: Documentation name: Documentation
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
persist-credentials: false persist-credentials: false
- name: Install Ubuntu packages 🧰 - name: Install Ubuntu packages
run: sudo ./utils/searx.sh install buildhost run: sudo ./utils/searx.sh install buildhost
- name: Set up Python 🧰 - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.9' python-version: '3.9'
architecture: 'x64' architecture: 'x64'
- name: Build documentation 🏗️ - name: Build documentation
run: SEARX_DEBUG=1 make V=1 travis-gh-pages run: SEARX_DEBUG=1 make V=1 travis-gh-pages
- name: Deploy 🚀 - name: Deploy
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: JamesIves/github-pages-deploy-action@3.7.1
with: with:
@ -87,24 +87,24 @@ jobs:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ - name: Checkout
if: env.DOCKERHUB_USERNAME != null if: env.DOCKERHUB_USERNAME != null
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
# make sure "make docker.push" can get the git history # make sure "make docker.push" can get the git history
fetch-depth: '0' fetch-depth: '0'
- name: Set up QEMU 🧰 - name: Set up QEMU
if: env.DOCKERHUB_USERNAME != null if: env.DOCKERHUB_USERNAME != null
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx 🧰 - name: Set up Docker Buildx
if: env.DOCKERHUB_USERNAME != null if: env.DOCKERHUB_USERNAME != null
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Login to DockerHub 🔒 - name: Login to DockerHub
if: env.DOCKERHUB_USERNAME != null if: env.DOCKERHUB_USERNAME != null
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push 🐳 - name: Build and push
if: env.DOCKERHUB_USERNAME != null if: env.DOCKERHUB_USERNAME != null
run: make -e GIT_URL=$(git remote get-url origin) docker.push run: make -e GIT_URL=$(git remote get-url origin) docker.push

View File

@ -47,7 +47,7 @@ class ErrorContext:
def add_error_context(engine_name: str, error_context: ErrorContext) -> None: def add_error_context(engine_name: str, error_context: ErrorContext) -> None:
errors_for_engine = errors_per_engines.setdefault(engine_name, {}) errors_for_engine = errors_per_engines.setdefault(engine_name, {})
errors_for_engine[error_context] = errors_for_engine.get(error_context, 0) + 1 errors_for_engine[error_context] = errors_for_engine.get(error_context, 0) + 1
logger.debug('⚠️ %s: %s', engine_name, str(error_context)) logger.debug('%s: %s', engine_name, str(error_context))
def get_trace(traces): def get_trace(traces):