Skip to content

Commit 365ff4a

Browse files
committed
Use uv in publish workflow
1 parent 1b0dae2 commit 365ff4a

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,18 @@ jobs:
1414
permissions:
1515
id-token: write
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818

19-
- name: Set up Python
20-
uses: actions/setup-python@v5
19+
- name: Set up uv
20+
uses: astral-sh/setup-uv@v7
2121
with:
22-
python-version: "3.10"
23-
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install build pytest
22+
python-version: "3.11"
2823

2924
- name: Build
30-
run: python -m build --sdist --wheel .
31-
32-
- name: Install wheel
33-
run: pip install pyopenms dist/psm_utils-*.whl
25+
run: uv build
3426

3527
- name: Test wheel
36-
run: |
37-
pytest
28+
run: uv run --isolated --with *.whl python -c "import psm_utils; print('Successfully imported built package.')"
3829

3930
- name: Publish to PyPI
40-
uses: pypa/gh-action-pypi-publish@release/v1
31+
uses: uv publish

0 commit comments

Comments
 (0)