A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
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. env:
  23. WITHOUT_EXTENSION: ${{ matrix.with-extension }}
  24. run: |
  25. python -m pip install --upgrade pip wheel setuptools coveralls pytest
  26. python setup.py develop
  27. - name: Run tests
  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