Skip to content

Commit

Permalink
CI for PR before merge
Browse files Browse the repository at this point in the history
  • Loading branch information
omer-dayan committed Sep 17, 2024
1 parent 4631220 commit 82b28a9
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/OnPR.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: RunAI Model Streamer Library - Pull Request
on:
pull_request:
paths:
- '**'

jobs:
lifecycle-install-tests:
name: Test, Build & Push
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set PACKAGE_VERSION
run: echo "PACKAGE_VERSION=0.0.0+dev.$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- name: Run tests and build
uses: devcontainers/[email protected]
with:
imageName: runai.jfrog.io/op-images-dev/core-llm-devcontainer
cacheFrom: runai.jfrog.io/op-images-dev/core-llm-devcontainer
push: always
runCmd: |
make test
PACKAGE_VERSION=${{ env.PACKAGE_VERSION }} make build
- name: Set package file names
run: |
file=$(find py/runai_model_streamer/dist -maxdepth 1 -type f -name 'runai_model_streamer*.whl' -print -quit)
s3_file=$(find py/runai_model_streamer_s3/dist -maxdepth 1 -type f -name 'runai_model_streamer_s3-*.whl' -print -quit)
echo "PACKAGE_FILE=$(basename $file)" >> $GITHUB_ENV
echo "S3_PACKAGE_FILE=$(basename $s3_file)" >> $GITHUB_ENV
- name: Upload streamer package to github action
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_FILE }}
path: py/runai_model_streamer/dist/${{ env.PACKAGE_FILE }}
if-no-files-found: error

- name: Upload s3 streamer package to github action
uses: actions/upload-artifact@v2
with:
name: ${{ env.S3_PACKAGE_FILE }}
path: py/runai_model_streamer_s3/dist/${{ env.S3_PACKAGE_FILE }}
if-no-files-found: error

0 comments on commit 82b28a9

Please sign in to comment.