Xqt submitted this change.

View Change

Approvals: Xqt: Verified; Looks good to me, approved
[tests] split write tests in two tasks

Change-Id: If08fe6669f88cb780c21d11fbc4c594d3aed7d1e
---
M .github/workflows/write_tests-ci.yml
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/write_tests-ci.yml b/.github/workflows/write_tests-ci.yml
index 6e6a661..71badcf 100644
--- a/.github/workflows/write_tests-ci.yml
+++ b/.github/workflows/write_tests-ci.yml
@@ -1,5 +1,5 @@
-name: Write test CI
-# Run Pywikibot write tests on test wiki
+name: Sysop write test CI
+# Run Pywikibot write tests on test wiki using sysop rights

on:
push:
@@ -25,6 +25,7 @@
matrix:
python-version: [ "3.7" ]
site: [ "wikipedia:test" ]
+ attr: [ "write", "rights and not write" ]
experimental: [ true ]

steps:
@@ -57,15 +58,15 @@
echo "password_file = os.path.expanduser('passwordfile')" >> user-config.py
echo "('${{ env.PYWIKIBOT_USERNAME }}', '${{ secrets.PYWIKIBOT_USERPWD }}')" > passwordfile

- - name: Write tests with pytest
+ - name: Sysop and write tests with pytest
id: ci_test
continue-on-error: true
timeout-minutes: 90
env:
- PYWIKIBOT_TEST_WRITE: ${{ matrix.site == 'wikipedia:test' && 1 || 0}}
+ PYWIKIBOT_TEST_WRITE: ${{ matrix.site == 'wikipedia:test' && 1 || 0 }}
run: |
python pwb.py version
- pytest -s -r A -a "rights or write" --cov=.;
+ pytest -s -r A -a "${{ matrix.attr }}" --cov=.;

- name: Show coverage statistics
run: |

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

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If08fe6669f88cb780c21d11fbc4c594d3aed7d1e
Gerrit-Change-Number: 1045535
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-CC: jenkins-bot