jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/742924 )
Change subject: [test] Add a minimal CI github action worker ...................................................................... [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(-) Approvals: Rubin: Looks good to me, but someone else must approve Legoktm: Looks good to me, approved jenkins-bot: Verified 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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/742924 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: If379e7bc3a4e22a1615008f6b03517a20e62d006 Gerrit-Change-Number: 742924 Gerrit-PatchSet: 6 Gerrit-Owner: Xqt <[email protected]> Gerrit-Reviewer: Legoktm <[email protected]> Gerrit-Reviewer: Rubin <[email protected]> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
_______________________________________________ Pywikibot-commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
