Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1050706?usp=email )
Change subject: [tests] fix windows_tests.yml ......................................................................
[tests] fix windows_tests.yml
Change-Id: I0e4e33444b8730e97b004439d6fa3755fdeefeb4 --- M .github/workflows/windows_tests.yml 1 file changed, 2 insertions(+), 22 deletions(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/.github/workflows/windows_tests.yml b/.github/workflows/windows_tests.yml index f8a4da4..9c2fea2 100644 --- a/.github/workflows/windows_tests.yml +++ b/.github/workflows/windows_tests.yml @@ -66,22 +66,9 @@ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install wikitextparser
- - name: Generate family files - run: | - if [ ${{matrix.family || 0}} == wpbeta ]; then - python pwb.py generate_family_file http://$%7B%7Bmatrix.code%7D%7D.wikipedia.beta.wmflabs.org/ wpbeta y - fi - if [ ${{matrix.site || 0}} == 'wsbeta:en' ]; then - python pwb.py generate_family_file http://en.wikisource.beta.wmflabs.org/ wsbeta y - fi - - name: Generate user files run: | - if [ ${{matrix.site}} != false ]; then - python -Werror::UserWarning -m pwb generate_user_files -site:${{matrix.site}} -user:${{ env.PYWIKIBOT_USERNAME }} -v -debug; - else - python -Werror::UserWarning -m pwb generate_user_files -family:${{matrix.family}} -lang:${{matrix.code}} -user:${{ env.PYWIKIBOT_USERNAME }} -v -debug; - fi + python -Werror::UserWarning -m pwb generate_user_files -site:${{matrix.site}} -user:${{ env.PYWIKIBOT_USERNAME }} -v -debug; echo "usernames['wikipedia']['en'] = '${{ env.PYWIKIBOT_USERNAME }}'" >> user-config.py echo "usernames['wikisource']['zh'] = '${{ env.PYWIKIBOT_USERNAME }}'" >> user-config.py echo "usernames['wikipedia']['test'] = '${{ env.PYWIKIBOT_USERNAME }}'" >> user-config.py @@ -99,16 +86,9 @@ id: ci_test continue-on-error: true timeout-minutes: 90 - env: - PYWIKIBOT_TEST_NO_RC: - ${{ (matrix.site == 'wikisource:zh' || matrix.test_no_rc) && 1 || 0 }} run: | python pwb.py version - if [ ${{matrix.site || 0}} != 'wikipedia:test' ]; then - coverage run -m unittest discover -vv -p "*_tests.py"; - else - pytest --cov=.; - fi + coverage run -m unittest discover -vv -p "*_tests.py";
- name: Show coverage statistics run: |
pywikibot-commits@lists.wikimedia.org