on master help sign in
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>

commitacefa65ac5f03c388332eb061db00efc83f7bcb0 authorMaciej "RooTer" Urbański <rooter@kyberian.net> dateMon 17 Jan 2022, 22:45 (5 years ago) parentf0c77a9
4 files changed+6−5
.github/workflows/data-update.yml+1−1 .github/workflows/integration.yml+2−2 requirements-dev.txt+2−1 utils/searx.sh+1−1
.github/workflows/data-update.yml+1−1
@@ -29,7 +29,7 @@ jobs:
2929 - name: Set up Python
3030 uses: actions/setup-python@v2
3131 with:
32− python-version: '3.9'
32+ python-version: '3.10'
3333 architecture: 'x64'
3434
3535 - name: Install Python dependencies
.github/workflows/integration.yml+2−2
@@ -13,7 +13,7 @@ jobs:
1313 strategy:
1414 matrix:
1515 os: [ubuntu-20.04]
16− python-version: [3.7, 3.8, 3.9]
16+ python-version: [3.7, 3.8, 3.9, "3.10"]
1717 steps:
1818 - name: Checkout
1919 uses: actions/checkout@v2
@@ -86,7 +86,7 @@ jobs:
8686 - name: Set up Python
8787 uses: actions/setup-python@v2
8888 with:
89− python-version: '3.9'
89+ python-version: '3.10'
9090 architecture: 'x64'
9191 - name: Cache Python dependencies
9292 id: cache-python
requirements-dev.txt+2−1
@@ -4,7 +4,8 @@ cov-core==1.15.0
44pycodestyle==2.8.0
55pylint==2.12.2
66splinter==0.17.0
7−transifex-client==0.14.3
7+transifex-client==0.14.3; python_version < '3.10'
8+transifex-client==0.12.1; python_version == '3.10'
89selenium==4.1.0
910twine==3.7.1
1011Pallets-Sphinx-Themes==2.0.2
utils/searx.sh+1−1
@@ -418,7 +418,7 @@ install_settings() {
418418 err_msg "you have to install searx first"
419419 exit 42
420420 fi
421− mkdir -p "$(dirname ${SEARX_SETTINGS_PATH})"
421+ mkdir -p "$(dirname "${SEARX_SETTINGS_PATH}")"
422422
423423 if [[ ! -f ${SEARX_SETTINGS_PATH} ]]; then
424424 info_msg "install settings ${SEARX_SETTINGS_TEMPLATE}"