Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1045535?usp=email )
Change subject: [tests] split write tests in two tasks
......................................................................
[tests] split write tests in two tasks
Change-Id: If08fe6669f88cb780c21d11fbc4c594d3aed7d1e
---
M .github/workflows/write_tests-ci.yml
1 file changed, 6 insertions(+), 5 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
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
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1045535?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: If08fe6669f88cb780c21d11fbc4c594d3aed7d1e
Gerrit-Change-Number: 1045535
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-CC: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]