A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

run-tests.yml 902 B

1234567891011121314151617181920212223242526272829303132333435
  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. with-extension: ['0', '1']
  14. steps:
  15. - uses: actions/checkout@v3
  16. - name: Set up Python ${{ matrix.python-version }}
  17. uses: actions/setup-python@v4
  18. with:
  19. python-version: ${{ matrix.python-version }}
  20. - name: Install dependencies
  21. run: |
  22. python -m pip install --upgrade pip
  23. pip install 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