A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

run-tests.yml 920 B

123456789101112131415161718192021222324252627282930313233343536
  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.7'
  10. - '3.8'
  11. - '3.9'
  12. - '3.10'
  13. - '3.11'
  14. with-extension: ['0', '1']
  15. steps:
  16. - uses: actions/checkout@v3
  17. - name: Set up Python ${{ matrix.python-version }}
  18. uses: actions/setup-python@v4
  19. with:
  20. python-version: ${{ matrix.python-version }}
  21. - name: Install dependencies
  22. run: |
  23. python -m pip install --upgrade pip
  24. pip install coveralls pytest
  25. python setup.py develop
  26. - name: Run tests
  27. env:
  28. WITHOUT_EXTENSION: ${{ matrix.with-extension }}
  29. run: |
  30. coverage run --source=mwparserfromhell -m pytest
  31. - name: Submit to coveralls
  32. env:
  33. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  34. run: |
  35. coveralls --service=github