Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanity test for pip install from repository #1000

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/remote_package_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Garak pip - install from repo

on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10","3.12"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: pip install from repo
run: |
python -m pip install --upgrade pip
python -m pip install -U git+https://github.com/${GITHUB_REPOSITORY}.git@${GITHUB_SHA}
- name: Sanity Test
run: |
python -m garak --model_type test.Blank --probes test.Test
set +e
grep ERROR $HOME/.local/share/garak/garak.log
jmartin-tech marked this conversation as resolved.
Show resolved Hide resolved
if [ $? != 1 ]; then
echo "Errors exist in the test log"
exit 1
fi
Loading