Skip to content

Commit

Permalink
also publish with uv (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikvaessen authored Jan 31, 2025
1 parent b14aac8 commit 8cb0b2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
run: |
uv venv
uv sync --extra dev
- name: Test with pytest
run: |
uv run python --version
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,27 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# Install a specific version of uv.
version: "0.5.26"

- name: Install dependencies
run: |
poetry run python -m pip install --upgrade pip
poetry update
poetry install
uv venv
uv sync --all-extras
- name: Build and publish
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry publish --build
uv build
uv publish

0 comments on commit 8cb0b2d

Please sign in to comment.