Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1050712?usp=email )

Change subject: [tests] Run lint tests on GitHub
......................................................................

[tests] Run lint tests on GitHub

Bug: T359513
Change-Id: I0c9027472a240f4cd5c2be54c9ef3fc112d9519f
---
A .github/workflows/lint_tests.yml
1 file changed, 61 insertions(+), 0 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/.github/workflows/lint_tests.yml b/.github/workflows/lint_tests.yml
new file mode 100644
index 0000000..d16646e
--- /dev/null
+++ b/.github/workflows/lint_tests.yml
@@ -0,0 +1,61 @@
+name: Lint test
+# Run Pywikibot lint tests with a variety of Python versions
+
+on:
+  push:
+    branches: [ master, stable ]
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+env:
+  PYWIKIBOT_TEST_RUNNING: 1
+  PYWIKIBOT_NO_USER_CONFIG=2
+
+jobs:
+  build:
+    runs-on: "ubuntu-latest"
+    continue-on-error: ${{ matrix.experimental || false }}
+    timeout-minutes: 100
+
+    strategy:
+      fail-fast: false
+
+      matrix:
+        python-version: [ "pypy3.7", "pypy3.10", "3.10", "3.11", "3.12", 
"3.13.0-alpha - 3.13.0", "3.14-dev" ]
+        experimental: [ true ]
+
+    steps:
+    - name: Checkout Repository
+      uses: actions/checkout@v4
+      with:
+        submodules: true
+
+    - name: Set up Python ${{ matrix.python-version }}
+      uses: actions/setup-python@v5
+      if: "!endsWith(matrix.python-version, '-dev')"
+      with:
+        python-version: ${{ matrix.python-version }}
+
+    # use deadsnakes/action for development releases
+    - name: Set up development Python ${{ matrix.python-version }}
+      uses: deadsnakes/[email protected]
+      if: "endsWith(matrix.python-version, '-dev')"
+      with:
+        python-version: ${{ matrix.python-version }}
+
+    - name: Install dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip --version
+        pip install .[flake8]
+
+    - name: Flake8 tests
+      id: ci_test
+      continue-on-error: true
+      timeout-minutes: 10
+      run: |
+        python --version
+        flake8 --version
+        flake8 --color always --doctests

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1050712?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: I0c9027472a240f4cd5c2be54c9ef3fc112d9519f
Gerrit-Change-Number: 1050712
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to