Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1221950?usp=email )
Change subject: Tests: Add a separate graalpy_tests action
......................................................................
Tests: Add a separate graalpy_tests action
Bug: T413596
Change-Id: I65a5e0d4ca4c4ec2d4ec2d78446d17adcd09471f
---
A .github/workflows/graalpy_tests.yml
M .github/workflows/pywikibot-ci.yml
2 files changed, 78 insertions(+), 6 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/.github/workflows/graalpy_tests.yml
b/.github/workflows/graalpy_tests.yml
new file mode 100644
index 0000000..c939def
--- /dev/null
+++ b/.github/workflows/graalpy_tests.yml
@@ -0,0 +1,78 @@
+---
+# Run Pywikibot tests with a variety of Python versions
+name: Pywikibot CI
+
+on:
+ push:
+ branches: [master]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+env:
+ PYWIKIBOT_TEST_RUNNING: 1
+ PYWIKIBOT_USERNAME: Pywikibot-test
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os || 'ubuntu-latest' }}
+ continue-on-error: ${{ matrix.experimental || false }}
+ timeout-minutes: 90
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: [graalpy-24.1, graalpy-25.0]
+ site: ['wikipedia:test']
+ os: ['windows-latest', 'macOS-latest', 'ubuntu-latest']
+ experimental: [True]
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v5
+ with:
+ submodules: true
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v6
+ with:
+ python-version: ${{ matrix.python-version }}
+ allow-prereleases: ${{ endsWith(matrix.python-version, '-dev') }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip --version
+ pip install "beautifulsoup4>=4.7.1"
+ pip install "mwparserfromhell>=0.5.2"
+ pip install packaging
+ pip install "requests>=2.31.0"
+ pip install "wikitextparser>=0.56.4"
+ pip install "pytest >= 9.0.1"
+ - name: Install setuptools
+ if: ${{ (matrix.python-version >= '3.12') || (matrix.os ==
'macOS-latest') }}
+ run: pip install setuptools
+ - name: Generate user files
+ run: |
+ python -Werror::UserWarning -m pwb generate_user_files
-site:${{matrix.site}} -v -debug;
+ - name: Test with unittest or pytest
+ id: ci_test
+ continue-on-error: true
+ timeout-minutes: 60
+ env:
+ PYTHONIOENCODING: utf-8
+ PYWIKIBOT_TEST_NO_RC: 1
+ run: |
+ python pwb.py version
+ coverage run -m pytest
+ - name: Show coverage statistics
+ run: |
+ coverage combine || true
+ coverage report
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v5
+ env:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+ - name: Check on failure
+ if: steps.ci_test.outcome == 'failure'
+ run: |
+ # Print public IP of runner
+ curl -s https://api.ipify.org
+ exit 1
diff --git a/.github/workflows/pywikibot-ci.yml
b/.github/workflows/pywikibot-ci.yml
index 019fbab..8e39852 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -57,12 +57,6 @@
- python-version: 3.14t
site: wikipedia:test
experimental: true
- - python-version: graalpy-24.1
- site: wikipedia:test
- experimental: true
- - python-version: graalpy-25.0
- site: wikipedia:test
- experimental: true
# ubuntu-22.04 required 3.15-dev due to T382214
- python-version: 3.15-dev
site: wikipedia:en
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1221950?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/core
Gerrit-Branch: master
Gerrit-Change-Id: I65a5e0d4ca4c4ec2d4ec2d78446d17adcd09471f
Gerrit-Change-Number: 1221950
Gerrit-PatchSet: 2
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]