Skip to content

fix(TextClassificationJailbreakEvaluator): Fix typo in text_classific… #8

fix(TextClassificationJailbreakEvaluator): Fix typo in text_classific…

fix(TextClassificationJailbreakEvaluator): Fix typo in text_classific… #8

Workflow file for this run

name: tests
on:
push:
branches: [ main ]
paths:
- ".github/workflows/*"
- "Makefile"
- "pyproject.toml"
- "**.py"
- "**.yaml"
pull_request:
branches: [ main ]
paths:
- ".github/workflows/*"
- "Makefile"
- "pyproject.toml"
- "**.py"
- "**.yaml"
jobs:
check_code_quality:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: pre-commit/[email protected]
with:
extra_args: --all-files
test-basic:
needs: check_code_quality
strategy:
matrix:
python-version: ['3.9']
os: ['ubuntu-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
requirements.txt
pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
make test
test-matrix:
needs: test-basic
strategy:
matrix:
python-version: ['3.9','3.10']
os: ['ubuntu-latest','windows-latest']
exclude:
- os: 'ubuntu-latest'
python-version: '3.9'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
requirements.txt
pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
make test