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 918 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. - '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