python-build.yml 445 B

1234567891011121314151617181920212223242526
  1. name: Build Python Package
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v4
  12. - name: Set up Python
  13. uses: actions/setup-python@v3
  14. with:
  15. python-version: '3.x'
  16. - name: Install dependencies
  17. run: |
  18. python -m pip install --upgrade pip
  19. pip install build
  20. - name: Build package
  21. run: python -m build