jenkins-bot submitted this change.

View Change

Approvals: Rubin: Looks good to me, but someone else must approve Legoktm: Looks good to me, approved jenkins-bot: Verified
[test] Add a minimal CI github action worker

Also add pypy3 to test matrix.

Bug: T101592
Bug: T296371
Change-Id: If379e7bc3a4e22a1615008f6b03517a20e62d006
---
A .github/workflows/pywikibot-ci.yml
1 file changed, 40 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
new file mode 100644
index 0000000..ebc1fc0
--- /dev/null
+++ b/.github/workflows/pywikibot-ci.yml
@@ -0,0 +1,40 @@
+# This workflow will install Python dependencies, run Pywikibot tests
+# with a variety of Python versions. For more information see:
+# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
+
+name: Pywikibot CI
+
+on:
+ push:
+ branches: [ master, stable ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip --version
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+ if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
+ pip install wikitextparser
+ python -Werror::UserWarning -m pwb generate_user_files -family:wikipedia -lang:test -v -debug
+ - name: Test with unittest
+ run: |
+ coverage run -m unittest discover -vv -p \"*_tests.py\"

To view, visit change 742924. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If379e7bc3a4e22a1615008f6b03517a20e62d006
Gerrit-Change-Number: 742924
Gerrit-PatchSet: 6
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Legoktm <legoktm@debian.org>
Gerrit-Reviewer: Rubin <rubin.happy@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged