-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oskar
committed
Feb 3, 2024
1 parent
f4c054c
commit a23f043
Showing
1 changed file
with
6 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Build package & publish a release to PyPI (test) | ||
# Given a tag, downloads the associated code, builds the package, and uploads the binary wheel(s) | ||
# and source tarball as artifacts | ||
# Given a tag, downloads the associated code, builds the package, and uploads the source tarball as artifact | ||
# This version releases to https://test.pypi.org/ for testing purposes | ||
# Triggers on: all published releases (incl pre-releases) | ||
|
||
|
@@ -15,21 +14,19 @@ permissions: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.10 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install system dependencies for graphcut functionality | ||
run: sudo apt-get install -y libboost-python-dev build-essential | ||
python-version: 3.x | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build a binary wheel and a source tarball | ||
run: python -m build | ||
- name: Build a source tarball | ||
run: python -m build --sdist | ||
- name: Store the distribution packages | ||
uses: actions/[email protected] | ||
with: | ||
|