Skip to content

Commit 8333b32

Browse files
Merge pull request #41 from kevinbackhouse/hatch
Switch to hatch project manager
2 parents 5563cb7 + d1ca17d commit 8333b32

File tree

89 files changed

+563
-400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+563
-400
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ permissions:
1111

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

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

31-
- name: Install dependencies
32-
run: |
33-
python -m venv .venv
34-
source .venv/bin/activate
35-
python -m pip install --upgrade pip
36-
python -m pip install -r requirements.txt
37-
python -m pip install -r requirements-test.txt
3832

39-
- name: Run tests with pytest
33+
- name: Install Hatch
34+
run: pip install --upgrade hatch
35+
36+
- name: Run static analysis
4037
run: |
41-
source .venv/bin/activate
42-
pytest tests/ -v
43-
env:
44-
PYTHONPATH: ${{ github.workspace }}
38+
# hatch fmt --check
39+
echo linter errors will be fixed in a separate PR
40+
41+
- name: Run tests
42+
run: hatch test --python ${{ matrix.python-version }} --cover --randomize --parallel --retries 2 --retry-delay 1

.github/workflows/smoketest.yaml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
python -m venv .venv
4242
source .venv/bin/activate
43-
python -m pip install -r requirements.txt
43+
python -m pip install hatch
4444
4545
- name: Run tests
4646
env:
@@ -49,19 +49,20 @@ jobs:
4949

5050
run: |
5151
source .venv/bin/activate
52-
python main.py -p personalities.assistant 'explain modems to me please'
53-
python main.py -p personalities.c_auditer 'explain modems to me please'
54-
python main.py -p personalities.examples.echo 'explain modems to me please'
55-
python main.py -t taskflows.CVE-2023-2283.CVE-2023-2283
56-
python main.py -t taskflows.examples.echo
57-
python main.py -t taskflows.examples.example
58-
python main.py -t taskflows.examples.example_globals
59-
python main.py -t taskflows.examples.example_inputs
60-
python main.py -t taskflows.examples.example_large_list_result_iter
61-
python main.py -t taskflows.examples.example_repeat_prompt
62-
python main.py -t taskflows.examples.example_repeat_prompt_async
63-
python main.py -t taskflows.examples.example_repeat_prompt_dictionary
64-
python main.py -t taskflows.examples.example_reusable_prompt
65-
python main.py -t taskflows.examples.example_reusable_taskflows
66-
python main.py -t taskflows.examples.example_triage_taskflow
67-
python main.py -t taskflows.examples.single_step_taskflow
52+
hatch build
53+
hatch run main -p seclab_taskflow_agent.personalities.assistant 'explain modems to me please'
54+
hatch run main -p seclab_taskflow_agent.personalities.c_auditer 'explain modems to me please'
55+
hatch run main -p examples.personalities.echo 'explain modems to me please'
56+
hatch run main -t examples.taskflows.CVE-2023-2283
57+
hatch run main -t examples.taskflows.echo
58+
hatch run main -t examples.taskflows.example
59+
hatch run main -t examples.taskflows.example_globals
60+
hatch run main -t examples.taskflows.example_inputs
61+
hatch run main -t examples.taskflows.example_large_list_result_iter
62+
hatch run main -t examples.taskflows.example_repeat_prompt
63+
hatch run main -t examples.taskflows.example_repeat_prompt_async
64+
hatch run main -t examples.taskflows.example_repeat_prompt_dictionary
65+
hatch run main -t examples.taskflows.example_reusable_prompt
66+
hatch run main -t examples.taskflows.example_reusable_taskflows
67+
hatch run main -t examples.taskflows.example_triage_taskflow
68+
hatch run main -t examples.taskflows.single_step_taskflow

README.md

Lines changed: 80 additions & 54 deletions
Large diffs are not rendered by default.

configs/model_config.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)