action.yml 689 B

12345678910111213141516171819202122232425
  1. name: uv-build
  2. description: Build the project with uv and run smoke tests
  3. inputs:
  4. python-version:
  5. description: Python version to install
  6. required: true
  7. runs:
  8. using: composite
  9. steps:
  10. - name: Install uv
  11. uses: astral-sh/setup-uv@v6
  12. - name: Install Python
  13. shell: bash
  14. run: uv python install ${{ inputs.python-version }}
  15. - name: Build
  16. shell: bash
  17. run: uv build
  18. - name: Smoke test (wheel)
  19. shell: bash
  20. run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
  21. - name: Smoke test (source distribution)
  22. shell: bash
  23. run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py