jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/745195 )
Change subject: [tests] Add wpbeta and wsbeta to test matrix
......................................................................
[tests] Add wpbeta and wsbeta to test matrix
Bug: T296371
Change-Id: I6c34b949d855d8f74833f08a7e73e8ad48413bc0
---
M .github/workflows/pywikibot-ci.yml
1 file changed, 25 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.github/workflows/pywikibot-ci.yml
b/.github/workflows/pywikibot-ci.yml
index 8c6d951..65302f3 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -26,6 +26,17 @@
site: ["wikipedia:en", "wikisource:zh"]
test_prod_only: [true]
include:
+ - python-version: "3.6"
+ family: wpbeta
+ code: en
+ experimental: true
+ - python-version: "3.6"
+ family: wpbeta
+ code: zh
+ experimental: true
+ - python-version: "3.5"
+ site: wsbeta:en
+ experimental: true
- python-version: "3.7"
site: "wikipedia:test"
- python-version: "3.7"
@@ -62,9 +73,22 @@
pip install wikitextparser
python -c "import setuptools; print('setuptools:',
setuptools.__version__)"
+ - name: Generate family files
+ run: |
+ if [ ${{matrix.family || 0}} == wpbeta ]; then
+ python pwb.py generate_family_file
http://${{matrix.code}}.wikipedia.beta.wmflabs.org/ wpbeta y
+ fi
+ if [ ${{matrix.site || 0}} == 'wsbeta:en' ]; then
+ python pwb.py generate_family_file
http://en.wikisource.beta.wmflabs.org/ wsbeta y
+ fi
+
- name: Generate user files
run: |
- python -Werror::UserWarning -m pwb generate_user_files
-site:${{matrix.site}} -v -debug
+ if [ ${{matrix.site}} ]; then
+ python -Werror::UserWarning -m pwb generate_user_files
-site:${{matrix.site}} -v -debug
+ else
+ python -Werror::UserWarning -m pwb generate_user_files
-family:${{matrix.family}} -lang:${{matrix.code}} -v -debug
+ fi
echo "max_retries = 3" >> user-config.py
echo "maximum_GET_length = 5000" >> user-config.py
echo "console_encoding = 'utf8'" >> user-config.py
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/745195
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I6c34b949d855d8f74833f08a7e73e8ad48413bc0
Gerrit-Change-Number: 745195
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]