Fix "no match for platform" GH action failure #219
This file contains hidden or 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: Staging Trigger LLM-COMPLETE | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches: [staging, main] | |
| concurrency: | |
| # New commit on branch cancels running workflows of the same branch | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| run-staging-workflow: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.draft == false | |
| env: | |
| ZENML_STORE_URL: ${{ secrets.ZENML_PROJECTS_HOST }} | |
| ZENML_STORE_API_KEY: ${{ secrets.ZENML_PROJECTS_API_KEY }} | |
| ZENML_STAGING_STACK : 67166d73-a44e-42f9-b67f-011e9afab9b5 # Set this to your staging stack ID | |
| ZENML_GITHUB_SHA: ${{ github.event.pull_request.head.sha }} | |
| ZENML_GITHUB_URL_PR: ${{ github.event.pull_request._links.html.href }} | |
| ZENML_DEBUG: true | |
| ZENML_ANALYTICS_OPT_IN: false | |
| ZENML_LOGGING_VERBOSITY: INFO | |
| ZENML_PROJECT_SECRET_NAME: llm-complete | |
| ZENML_DISABLE_CLIENT_SERVER_MISMATCH_WARNING: True | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install requirements | |
| working-directory: ./llm-complete-guide | |
| run: | | |
| pip3 install uv | |
| uv pip install -r requirements.txt --system | |
| uv pip install -r requirements-argilla.txt --system | |
| zenml integration install aws s3 -y --uv | |
| - name: Connect to ZenML server | |
| working-directory: ./llm-complete-guide | |
| run: | | |
| zenml init | |
| - name: List and describe ZenML projects | |
| working-directory: ./llm-complete-guide | |
| run: | | |
| zenml project list || echo "Could not list projects" | |
| zenml project describe || echo "Failed to describe project" | |
| - name: Register Set ZenML project | |
| working-directory: ./llm-complete-guide | |
| run: | | |
| zenml project register llm-complete-guide || echo "Failed to register project" | |
| zenml project set llm-complete-guide || echo "Failed to set project" | |
| - name: Set stack (Staging) | |
| working-directory: ./llm-complete-guide | |
| run: | | |
| zenml stack set ${{ env.ZENML_STAGING_STACK }} | |
| - name: Run pipeline (Staging) | |
| working-directory: ./llm-complete-guide | |
| run: | | |
| python gh_action_rag.py --no-cache --config staging/rag.yaml --zenml-model-version staging |