Skip to content

Commit

Permalink
Change to build source dist only
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskar committed Feb 3, 2024
1 parent f4c054c commit a23f043
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build-publish-test.yml
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)

Expand All @@ -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:
Expand Down

0 comments on commit a23f043

Please sign in to comment.