Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
26 changes: 12 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ permissions:

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
name: Run Tests ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.11', '3.13'] # the one we have in the Codespace + the latest supported one by PyO3.
fail-fast: false # Continue testing other version(s) if one fails

Expand All @@ -28,17 +29,14 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-test.txt

- name: Run tests with pytest
- name: Install Hatch
run: pip install --upgrade hatch

- name: Run static analysis
run: |
source .venv/bin/activate
pytest tests/ -v
env:
PYTHONPATH: ${{ github.workspace }}
# hatch fmt --check
echo linter errors will be fixed in a separate PR

- name: Run tests
run: hatch test --python ${{ matrix.python-version }} --cover --randomize --parallel --retries 2 --retry-delay 1
35 changes: 18 additions & 17 deletions .github/workflows/smoketest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pip install hatch

- name: Run tests
env:
Expand All @@ -49,19 +49,20 @@ jobs:

run: |
source .venv/bin/activate
python main.py -p personalities.assistant 'explain modems to me please'
python main.py -p personalities.c_auditer 'explain modems to me please'
python main.py -p personalities.examples.echo 'explain modems to me please'
python main.py -t taskflows.CVE-2023-2283.CVE-2023-2283
python main.py -t taskflows.examples.echo
python main.py -t taskflows.examples.example
python main.py -t taskflows.examples.example_globals
python main.py -t taskflows.examples.example_inputs
python main.py -t taskflows.examples.example_large_list_result_iter
python main.py -t taskflows.examples.example_repeat_prompt
python main.py -t taskflows.examples.example_repeat_prompt_async
python main.py -t taskflows.examples.example_repeat_prompt_dictionary
python main.py -t taskflows.examples.example_reusable_prompt
python main.py -t taskflows.examples.example_reusable_taskflows
python main.py -t taskflows.examples.example_triage_taskflow
python main.py -t taskflows.examples.single_step_taskflow
hatch build
hatch run main -p seclab_taskflow_agent.personalities.assistant 'explain modems to me please'
hatch run main -p seclab_taskflow_agent.personalities.c_auditer 'explain modems to me please'
hatch run main -p examples.personalities.echo 'explain modems to me please'
hatch run main -t examples.taskflows.CVE-2023-2283
hatch run main -t examples.taskflows.echo
hatch run main -t examples.taskflows.example
hatch run main -t examples.taskflows.example_globals
hatch run main -t examples.taskflows.example_inputs
hatch run main -t examples.taskflows.example_large_list_result_iter
hatch run main -t examples.taskflows.example_repeat_prompt
hatch run main -t examples.taskflows.example_repeat_prompt_async
hatch run main -t examples.taskflows.example_repeat_prompt_dictionary
hatch run main -t examples.taskflows.example_reusable_prompt
hatch run main -t examples.taskflows.example_reusable_taskflows
hatch run main -t examples.taskflows.example_triage_taskflow
hatch run main -t examples.taskflows.single_step_taskflow
134 changes: 80 additions & 54 deletions README.md

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions configs/model_config.yaml

This file was deleted.

Loading