1
0
mirror of https://github.com/searx/searx synced 2024-12-11 16:35:20 +01:00

Run tests under python 3.10 (#3035)

* fix SC2086 on mkdir $SEARX_SETTINGS_PATH
* run tests under python 3.10
* Update requirements.txt for now to downgrade transifex

Co-authored-by: Noémi Ványi <sitbackandwait@gmail.com>
This commit is contained in:
Maciej "RooTer" Urbański 2022-01-17 22:45:01 +01:00 committed by GitHub
parent f0c77a91d1
commit acefa65ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -29,7 +29,7 @@ jobs:
- 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.10'
architecture: 'x64' architecture: 'x64'
- name: Install Python dependencies - name: Install Python dependencies

View File

@ -13,7 +13,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-20.04] os: [ubuntu-20.04]
python-version: [3.7, 3.8, 3.9] python-version: [3.7, 3.8, 3.9, "3.10"]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -86,7 +86,7 @@ jobs:
- 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.10'
architecture: 'x64' architecture: 'x64'
- name: Cache Python dependencies - name: Cache Python dependencies
id: cache-python id: cache-python

View File

@ -4,7 +4,8 @@ cov-core==1.15.0
pycodestyle==2.8.0 pycodestyle==2.8.0
pylint==2.12.2 pylint==2.12.2
splinter==0.17.0 splinter==0.17.0
transifex-client==0.14.3 transifex-client==0.14.3; python_version < '3.10'
transifex-client==0.12.1; python_version == '3.10'
selenium==4.1.0 selenium==4.1.0
twine==3.7.1 twine==3.7.1
Pallets-Sphinx-Themes==2.0.2 Pallets-Sphinx-Themes==2.0.2

View File

@ -418,7 +418,7 @@ install_settings() {
err_msg "you have to install searx first" err_msg "you have to install searx first"
exit 42 exit 42
fi fi
mkdir -p "$(dirname ${SEARX_SETTINGS_PATH})" mkdir -p "$(dirname "${SEARX_SETTINGS_PATH}")"
if [[ ! -f ${SEARX_SETTINGS_PATH} ]]; then if [[ ! -f ${SEARX_SETTINGS_PATH} ]]; then
info_msg "install settings ${SEARX_SETTINGS_TEMPLATE}" info_msg "install settings ${SEARX_SETTINGS_TEMPLATE}"