Include openai in the pip requirements for morpheus_llm #2169
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
# SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: Build pull request | |
on: | |
push: | |
branches: | |
- 'pull-request/**' | |
- 'branch-*' | |
- 'main' | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
permissions: | |
actions: none | |
checks: none | |
contents: read | |
deployments: none | |
discussions: none | |
id-token: write | |
issues: none | |
packages: read | |
pages: none | |
pull-requests: read | |
repository-projects: none | |
security-events: none | |
statuses: none | |
jobs: | |
pr-builder: | |
needs: | |
- prepare | |
- checks | |
- ci_pipe | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
prepare: | |
# Executes the get-pr-info action to determine if the PR has the skip-ci label, if the action fails we assume the | |
# PR does not have the label | |
name: Prepare | |
runs-on: ubuntu-latest | |
container: | |
image: rapidsai/ci-conda:latest | |
steps: | |
- name: Get PR Info | |
id: get-pr-info | |
uses: nv-gha-runners/get-pr-info@main | |
if: ${{ startsWith(github.ref_name, 'pull-request/') }} | |
outputs: | |
is_pr: ${{ startsWith(github.ref_name, 'pull-request/') }} | |
is_main_branch: ${{ github.ref_name == 'main' }} | |
is_dev_branch: ${{ startsWith(github.ref_name, 'branch-') }} | |
has_conda_build_label: ${{ steps.get-pr-info.outcome == 'success' && contains(fromJSON(steps.get-pr-info.outputs.pr-info).labels.*.name, 'conda-build') || false }} | |
has_skip_ci_label: ${{ steps.get-pr-info.outcome == 'success' && contains(fromJSON(steps.get-pr-info.outputs.pr-info).labels.*.name, 'skip-ci') || false }} | |
pr_info: ${{ steps.get-pr-info.outcome == 'success' && steps.get-pr-info.outputs.pr-info || '' }} | |
checks: | |
needs: [prepare] | |
# Only run the CI pipeline if the PR does not have the skip-ci label and we are on a PR branch | |
if: ${{ !fromJSON(needs.prepare.outputs.has_skip_ci_label) && fromJSON(needs.prepare.outputs.is_pr )}} | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
with: | |
enable_check_generated_files: false | |
ci_pipe: | |
name: CI Pipeline | |
needs: [prepare] | |
uses: ./.github/workflows/ci_pipe.yml | |
# Only run the CI pipeline if the PR does not have the skip-ci label | |
if: ${{ ! fromJSON(needs.prepare.outputs.has_skip_ci_label) }} | |
with: | |
# Run checks for any PR branch | |
run_check: ${{ fromJSON(needs.prepare.outputs.is_pr) }} | |
# Build conda packages for all the morpheus libraries - core, dfp, llm. This is | |
# done for main/dev branches and for PRs with the conda-build label | |
conda_run_build: ${{ !fromJSON(needs.prepare.outputs.is_pr) || fromJSON(needs.prepare.outputs.has_conda_build_label) }} | |
# Upload morpheus conda packages only for non PR branches. Use 'main' for main branch and 'dev' for all other branches | |
conda_upload_label: ${{ !fromJSON(needs.prepare.outputs.is_pr) && (fromJSON(needs.prepare.outputs.is_main_branch) && 'main' || 'dev') || '' }} | |
base_container: rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.10 | |
container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-build-241024 | |
test_container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-test-241024 | |
secrets: | |
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} | |
NGC_API_KEY: ${{ secrets.NGC_API_KEY }} |