Build, Test, and Upload PyPI package #4
Workflow file for this run
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
name: Build, Test, and Upload PyPI package | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
permissions: | |
contents: read | |
# see https://docs.pypi.org/trusted-publishers/ | |
id-token: write | |
jobs: | |
build-package: | |
name: Build Ray data processing libraries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# for setuptools-scm | |
fetch-depth: 0 | |
- name: Build Packages for pypi | |
run: | | |
make -C data-processing-lib build | |
make -C data-processing-lib/ray build | |
make -C data-processing-lib/spark build | |
publish-test-pypi: | |
name: Publish packages to test.pypi.org | |
# disabled | |
if: false | |
runs-on: ubuntu-latest | |
needs: build-package | |
steps: | |
- name: Fetch build artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: Packages | |
path: dist | |
- name: Upload to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |
publish-pypi: | |
name: Publish release to pypi.org | |
runs-on: ubuntu-latest | |
needs: build-package | |
# disabled as of now | |
if: false | |
steps: | |
- name: Fetch build artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: Packages | |
path: dist | |
- name: Upload to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |