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.
 
 
 
 

81 wiersze
2.0 KiB

  1. name: Build
  2. on: [push, pull_request]
  3. jobs:
  4. build-wheels:
  5. name: Build wheels for ${{ matrix.os }}
  6. runs-on: ${{ matrix.runs-on }}
  7. strategy:
  8. matrix:
  9. include:
  10. - os: linux-intel
  11. runs-on: ubuntu-latest
  12. - os: linux-arm
  13. runs-on: ubuntu-24.04-arm
  14. - os: windows-intel
  15. runs-on: windows-latest
  16. - os: macos-intel
  17. runs-on: macos-13
  18. - os: macos-arm
  19. runs-on: macos-latest
  20. steps:
  21. - uses: actions/checkout@v4
  22. with:
  23. fetch-depth: 0
  24. - name: Build wheels
  25. uses: pypa/cibuildwheel@v3.0.0
  26. - uses: actions/upload-artifact@v4
  27. with:
  28. name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
  29. path: ./wheelhouse/*.whl
  30. - name: Get coverage files
  31. if: matrix.os == 'linux-intel'
  32. id: get-coverage-files
  33. run: |
  34. FILES=$(find ./wheelhouse -type f -name 'coverage*' -printf '%p ')
  35. echo "Found coverage files: $FILES"
  36. echo "files=$FILES" >> $GITHUB_OUTPUT
  37. - name: Coveralls
  38. if: matrix.os == 'linux-intel'
  39. uses: coverallsapp/github-action@v2
  40. with:
  41. files: ${{ steps.get-coverage-files.outputs.files }}
  42. build-sdist:
  43. name: Build source distribution
  44. runs-on: ubuntu-latest
  45. steps:
  46. - uses: actions/checkout@v4
  47. with:
  48. fetch-depth: 0
  49. - name: Build sdist
  50. run: pipx run build --sdist
  51. - uses: actions/upload-artifact@v4
  52. with:
  53. name: cibw-sdist
  54. path: dist/*.tar.gz
  55. upload-pypi:
  56. name: Publish to PyPI
  57. needs: [build-wheels, build-sdist]
  58. runs-on: ubuntu-latest
  59. environment: pypi
  60. permissions:
  61. id-token: write
  62. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  63. steps:
  64. - uses: actions/download-artifact@v4
  65. with:
  66. pattern: cibw-*
  67. path: dist
  68. merge-multiple: true
  69. - uses: pypa/gh-action-pypi-publish@release/v1