A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 line
902 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. 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