new test for GH actions

This commit is contained in:
Adam Wilson
2025-08-16 18:57:08 -06:00
parent 82c987404b
commit 1eadd81d77
12 changed files with 76 additions and 30 deletions
+35
View File
@@ -0,0 +1,35 @@
name: 'Test RAG and CoT for all models'
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 'checkout'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: 'set up Python'
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: 'set up Python dependencies'
shell: bash
run: |
pip install -r ${{ github.workspace }}/requirements.txt
# - name: 'set up Microsoft Phi-3 Mini 4k LLM from HuggingFace'
# shell: bash
# run: |
# 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: 'test RAG and CoT for all models'
shell: bash
run: |
pytest -k test_04_malicious_prompts_rag_and_cot -s --disable-warnings