jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/1257896?usp=email )
Change subject: tests: Simplify test matrix
......................................................................
tests: Simplify test matrix
l10n unittest was removed. Therefore remove the necessary tests for it.
Bug: T396399
Bug: T396447
Change-Id: I2ab2027c271566423dd4672115a65921f71e52e3
---
M .pre-commit-config.yaml
D run-tests.sh
M tox.ini
3 files changed, 8 insertions(+), 41 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f673a99..7b0a7a5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,10 +17,8 @@
args:
- --maxkb=100
- id: check-case-conflict
- - id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- - id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: check-yaml
- id: destroyed-symlinks
diff --git a/run-tests.sh b/run-tests.sh
deleted file mode 100755
index fcc6b7b..0000000
--- a/run-tests.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-set -euxo pipefail
-
-git clone https://github.com/wikimedia/pywikibot $1/pywikibot-build --depth 1
-mkdir -p $1/pywikibot-build/scripts/i18n
-touch $1/pywikibot-build/scripts/i18n/__init__.py
-for item in *; do
- if [[ -d "$item" ]]; then
- cp -rp "$item" $1/pywikibot-build/scripts/i18n;
- fi;
-done
-
-cd $1/pywikibot-build
-
-# T349599: setenv is not respected in tox;
-# therefore set this environment variable here
-export PYWIKIBOT_NO_USER_CONFIG=2
-# no tests yet
-# python -m unittest -v tests/l10n_tests.py
diff --git a/tox.ini b/tox.ini
index a4d46a6..e4fab21 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,31 +1,19 @@
[tox]
-# minversion = 1.7.2 needed for skip_missing_interpreters
-minversion = 1.7.2
-
-# Do not run install command
+minversion = 3.21
skipsdist = True
skip_missing_interpreters = True
-
-# Environments to execute when invoking 'tox'
envlist =
- lint
- py38
+ lint-py{310,313}
[testenv]
-commands = ./run-tests.sh {envtmpdir}
-
-deps =
- packaging
- requests
-
-allowlist_externals = *
-
-[testenv:lint]
-basepython = python3.13
+basepython =
+ py310: python3.10
+ py313: python3.13
+setenv =
+ VIRTUAL_ENV={envdir}
+ PRE_COMMIT_COLOR=always
deps =
pre-commit >= 4.2.0
commands =
python --version
pre-commit run --all-files --show-diff-on-failure
-setenv =
- PRE_COMMIT_COLOR=always
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/1257896?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: I2ab2027c271566423dd4672115a65921f71e52e3
Gerrit-Change-Number: 1257896
Gerrit-PatchSet: 5
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]