forked from searxng/searxng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
7 changed files
with
155 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: "Checker" | ||
on: | ||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
- cron: "0 4 * * 5" | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Integration | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
|
@@ -14,92 +14,92 @@ jobs: | |
name: Python ${{ matrix.python-version }} | ||
runs-on: 'self-hosted' # Ran out of hours :P | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install packages | ||
run: | | ||
sudo ./utils/searxng.sh install packages | ||
sudo apt install firefox-esr | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements*.txt', 'setup.py') }} | ||
- name: Install Python dependencies | ||
if: steps.cache-python.outputs.cache-hit != 'true' | ||
run: | | ||
make V=1 install | ||
make V=1 gecko.driver | ||
- name: Run tests | ||
run: make V=1 ci.test | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install packages | ||
run: | | ||
sudo ./utils/searxng.sh install packages | ||
sudo apt install firefox-esr | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements*.txt', 'setup.py') }} | ||
- name: Install Python dependencies | ||
if: steps.cache-python.outputs.cache-hit != 'true' | ||
run: | | ||
make V=1 install | ||
make V=1 gecko.driver | ||
- name: Run tests | ||
run: make V=1 ci.test | ||
|
||
themes: | ||
name: Themes | ||
runs-on: 'self-hosted' # Ran out of hours :P | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install packages | ||
run: sudo ./utils/searxng.sh install buildhost | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: Install node dependencies | ||
run: make V=1 node.env | ||
- name: Build themes | ||
run: make V=1 themes.all | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install packages | ||
run: sudo ./utils/searxng.sh install buildhost | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: Install node dependencies | ||
run: make V=1 node.env | ||
- name: Build themes | ||
run: make V=1 themes.all | ||
|
||
documentation: | ||
name: Documentation | ||
runs-on: 'self-hosted' # Ran out of hours :P | ||
permissions: | ||
contents: write # for JamesIves/github-pages-deploy-action to push changes in repo | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
persist-credentials: false | ||
- name: Install packages | ||
run: sudo ./utils/searxng.sh install buildhost | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: Build documentation | ||
run: | | ||
make V=1 docs.clean docs.html | ||
- name: Deploy | ||
if: github.ref == 'refs/heads/master' | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
BRANCH: gh-pages | ||
FOLDER: dist/docs | ||
CLEAN: true # Automatically remove deleted files from the deploy branch | ||
SINGLE_COMMIT: True | ||
COMMIT_MESSAGE: '[doc] build from commit ${{ github.sha }}' | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
persist-credentials: false | ||
- name: Install packages | ||
run: sudo ./utils/searxng.sh install buildhost | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: Build documentation | ||
run: | | ||
make V=1 docs.clean docs.html | ||
- name: Deploy | ||
if: github.ref == 'refs/heads/master' | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
BRANCH: gh-pages | ||
FOLDER: dist/docs | ||
CLEAN: true # Automatically remove deleted files from the deploy branch | ||
SINGLE_COMMIT: true | ||
COMMIT_MESSAGE: '[doc] build from commit ${{ github.sha }}' | ||
|
||
babel: | ||
name: Update translations branch | ||
|
@@ -112,34 +112,34 @@ jobs: | |
permissions: | ||
contents: write # for make V=1 weblate.push.translations | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
token: ${{ secrets.WEBLATE_GITHUB_TOKEN }} | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: weblate & git setup | ||
env: | ||
WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }} | ||
run: | | ||
mkdir -p ~/.config | ||
echo "${WEBLATE_CONFIG}" > ~/.config/weblate | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "searxng-bot" | ||
- name: Update transations | ||
id: update | ||
run: | | ||
make V=1 weblate.push.translations | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
token: ${{ secrets.WEBLATE_GITHUB_TOKEN }} | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: weblate & git setup | ||
env: | ||
WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }} | ||
run: | | ||
mkdir -p ~/.config | ||
echo "${WEBLATE_CONFIG}" > ~/.config/weblate | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "searxng-bot" | ||
- name: Update transations | ||
id: update | ||
run: | | ||
make V=1 weblate.push.translations | ||
dockers: | ||
name: Docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: "Update translations" | ||
on: | ||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
- cron: "05 07 * * 5" | ||
workflow_dispatch: | ||
|
@@ -10,47 +10,47 @@ jobs: | |
runs-on: 'self-hosted' # Ran out of hours :P | ||
if: ${{ github.repository_owner == 'searxng' && github.ref == 'refs/heads/master' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
token: ${{ secrets.WEBLATE_GITHUB_TOKEN }} | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: weblate & git setup | ||
env: | ||
WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }} | ||
run: | | ||
mkdir -p ~/.config | ||
echo "${WEBLATE_CONFIG}" > ~/.config/weblate | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "searxng-bot" | ||
- name: Merge and push transation updates | ||
run: | | ||
make V=1 weblate.translations.commit | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.WEBLATE_GITHUB_TOKEN }} | ||
commit-message: '[l10n] update translations from Weblate' | ||
committer: searxng-bot <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: translations_update | ||
delete-branch: true | ||
draft: false | ||
title: '[l10n] update translations from Weblate' | ||
body: | | ||
update translations from Weblate | ||
labels: | | ||
translation | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
token: ${{ secrets.WEBLATE_GITHUB_TOKEN }} | ||
- name: Set up Python | ||
run: sudo apt install python3 | ||
- name: Cache Python dependencies | ||
id: cache-python | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./local | ||
./.nvm | ||
./node_modules | ||
key: python-ubuntu-20.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }} | ||
- name: weblate & git setup | ||
env: | ||
WEBLATE_CONFIG: ${{ secrets.WEBLATE_CONFIG }} | ||
run: | | ||
mkdir -p ~/.config | ||
echo "${WEBLATE_CONFIG}" > ~/.config/weblate | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "searxng-bot" | ||
- name: Merge and push transation updates | ||
run: | | ||
make V=1 weblate.translations.commit | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.WEBLATE_GITHUB_TOKEN }} | ||
commit-message: '[l10n] update translations from Weblate' | ||
committer: searxng-bot <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: translations_update | ||
delete-branch: true | ||
draft: false | ||
title: '[l10n] update translations from Weblate' | ||
body: | | ||
update translations from Weblate | ||
labels: | | ||
translation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters