use test environment #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Publish a release to PyPI. | |
name: "Publish to PyPI" | |
on: | |
push: | |
branches: | |
- "v3-dev" | |
jobs: | |
pypi-publish: | |
name: Upload to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: testpypi | |
permissions: | |
# For PyPI's trusted publishing. | |
id-token: write | |
steps: | |
- name: "Install uv" | |
uses: astral-sh/setup-uv@v5 | |
- uses: actions/checkout@v4 | |
with: | |
# This is necessary so that we have the tags. | |
fetch-depth: 0 | |
- name: "Build artifacts" | |
run: uv build | |
- name: Publish to PyPi | |
run: uv publish --index test | |
- name: Test package install | |
run: uv run --index test --with specklepy --no-project -- python -c "import specklepy" |