Skip to content

Commit 5791de5

Browse files
committed
Implemented basic gitflow
1 parent 51d0ec0 commit 5791de5

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Staging Trigger LLM-COMPLETE
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
branches: [staging, main]
6+
concurrency:
7+
# New commit on branch cancels running workflows of the same branch
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
run-staging-workflow:
13+
runs-on: ubuntu-dind-runners
14+
env:
15+
ZENML_HOST: ${{ secrets.ZENML_HOST }}
16+
ZENML_API_KEY: ${{ secrets.ZENML_API_KEY }}
17+
ZENML_STAGING_STACK: 51a49786-b82a-4646-bde7-a460efb0a9c5
18+
ZENML_GITHUB_SHA: ${{ github.event.pull_request.head.sha }}
19+
ZENML_GITHUB_URL_PR: ${{ github.event.pull_request._links.html.href }}
20+
ZENML_DEBUG: true
21+
ZENML_ANALYTICS_OPT_IN: false
22+
ZENML_LOGGING_VERBOSITY: INFO
23+
24+
steps:
25+
- name: Check out repository code
26+
uses: actions/checkout@v3
27+
28+
- uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.11'
31+
32+
- name: Install requirements
33+
run: |
34+
pip3 install -r requirements.txt
35+
zenml integration install gcp -y
36+
37+
- name: Connect to ZenML server
38+
run: |
39+
zenml connect --url $ZENML_HOST --api-key $ZENML_API_KEY
40+
41+
- name: Set stack (Staging)
42+
if: ${{ github.base_ref == 'staging' }}
43+
run: |
44+
zenml stack set ${{ env.ZENML_STAGING_STACK }}
45+
46+
- name: Run pipeline (Staging)
47+
if: ${{ github.base_ref == 'staging' }}
48+
run: |
49+
python run.py --rag --evaluation --no-cache

llm-complete-guide/configs/rag.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# environment configuration
22
settings:
33
docker:
4+
parent_image: "zenmldocker/prepare-release:base-0.68.0"
45
requirements:
56
- unstructured
67
- sentence-transformers>=3
@@ -10,3 +11,6 @@ settings:
1011
- numpy
1112
- psycopg2-binary
1213
- tiktoken
14+
environment:
15+
ZENML_ENABLE_RICH_TRACEBACK: FALSE
16+
ZENML_LOGGING_VERBOSITY: INFO

llm-complete-guide/configs/rag_eval.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ enable_cache: False
33
# environment configuration
44
settings:
55
docker:
6+
parent_image: "zenmldocker/prepare-release:base-0.68.0"
67
requirements:
78
- unstructured
89
- sentence-transformers>=3

0 commit comments

Comments
 (0)