Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading