From 4c317634a373f186a22688f28b4c6eac06098c22 Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Mon, 4 Aug 2025 21:23:56 -0600 Subject: [PATCH] fix order; add PR trigger --- .github/workflows/guidelines.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/guidelines.yml b/.github/workflows/guidelines.yml index e3d6e5624..2e10b2748 100644 --- a/.github/workflows/guidelines.yml +++ b/.github/workflows/guidelines.yml @@ -1,11 +1,27 @@ name: 'Generative AI Guidelines Pre-Production Test' on: + # Triggers on pull requests and manual workflow dispatch + pull_request: workflow_dispatch: + jobs: + + # for demo purposes + build: + runs-on: ubuntu-latest + steps: + - name: build + shell: bash + run: | + sleep 10 + echo "placeholder for build process" + + test: runs-on: ubuntu-latest + needs: build steps: - name: 'checkout' uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 @@ -26,28 +42,16 @@ jobs: pip install huggingface-hub[cli] huggingface-cli download microsoft/Phi-3-mini-4k-instruct-onnx --include cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/* --local-dir ${{ github.workspace }}/infrastructure/foundation_model - - name: 'run generative AI guidelines test' shell: bash run: | pytest -k test__generative_ai_guidelines -s --disable-warnings - # for illustrative purposes - build: - runs-on: ubuntu-latest - needs: test - steps: - - name: build - shell: bash - run: | - echo "placeholder for build process" - - - # for illustrative purposes + # for demo purposes deploy: runs-on: ubuntu-latest - needs: [test, build] + needs: [build, test] steps: - name: deploy shell: bash