From 365ff4ad35033945ea219de3a003d063d1b7cb2e Mon Sep 17 00:00:00 2001 From: RalfG Date: Mon, 27 Oct 2025 22:46:40 +0100 Subject: [PATCH] Use uv in publish workflow --- .github/workflows/publish.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b7e70e8..6d0dc0a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,27 +14,18 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - - name: Set up Python - uses: actions/setup-python@v5 + - name: Set up uv + uses: astral-sh/setup-uv@v7 with: - python-version: "3.10" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build pytest + python-version: "3.11" - name: Build - run: python -m build --sdist --wheel . - - - name: Install wheel - run: pip install pyopenms dist/psm_utils-*.whl + run: uv build - name: Test wheel - run: | - pytest + run: uv run --isolated --with *.whl python -c "import psm_utils; print('Successfully imported built package.')" - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: uv publish