A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

36 行
918 B

  1. name: Run tests
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. python-version:
  9. - '3.8'
  10. - '3.9'
  11. - '3.10'
  12. - '3.11'
  13. - '3.12'
  14. with-extension: ['0', '1']
  15. steps:
  16. - uses: actions/checkout@v4
  17. - name: Set up Python ${{ matrix.python-version }}
  18. uses: actions/setup-python@v5
  19. with:
  20. python-version: ${{ matrix.python-version }}
  21. - name: Install dependencies
  22. run: |
  23. python -m pip install --upgrade pip wheel setuptools coveralls pytest
  24. python setup.py develop
  25. - name: Run tests
  26. env:
  27. WITHOUT_EXTENSION: ${{ matrix.with-extension }}
  28. run: |
  29. coverage run --source=mwparserfromhell -m pytest
  30. - name: Submit to coveralls
  31. env:
  32. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  33. run: |
  34. coveralls --service=github