Skip to content

Fix broken cloud integ tests - add dependent fields to multimodal (#264) #205

Fix broken cloud integ tests - add dependent fields to multimodal (#264)

Fix broken cloud integ tests - add dependent fields to multimodal (#264) #205

# GitHub Actions Workflow: Publish to PyPI
# This workflow automates the process of testing and publishing Py-Marqo to PyPI.
# This workflow:
# 1. Runs unit tests using the open-source-unit-tests.yml workflow
# 2. Publishes the package to PyPi given the unit tests passed
name: Publish to PyPI
on:
push:
branches:
- mainline
- 'releases/*'
permissions:
contents: read
jobs:
Run-open-source-unit-tests:
name: Run open source unit tests
uses: ./.github/workflows/open-source-unit-tests.yml

Check failure on line 21 in .github/workflows/publish-to-PyPI.yml

View workflow run for this annotation

GitHub Actions / Publish to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/publish-to-PyPI.yml (Line: 21, Col: 11): Input image_registry_location is required, but not provided while calling. .github/workflows/publish-to-PyPI.yml (Line: 21, Col: 11): Input image_repo is required, but not provided while calling.
secrets: inherit
Publish-to-PyPi:
runs-on: ubuntu-latest
environment: PyPI
needs:
- Run-open-source-unit-tests
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}