Skip to content

Commit db4e46b

Browse files
Switch to [hatch](https://hatch.pypa.io/) project manager so that we can publish to PyPI.
1 parent 5563cb7 commit db4e46b

File tree

86 files changed

+324
-199
lines changed

Some content is hidden

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

86 files changed

+324
-199
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 16 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,12 @@ 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
38-
39-
- name: Run tests with pytest
40-
run: |
41-
source .venv/bin/activate
42-
pytest tests/ -v
43-
env:
44-
PYTHONPATH: ${{ github.workspace }}
32+
33+
- name: Install Hatch
34+
run: pip install --upgrade hatch
35+
36+
- name: Run static analysis
37+
run: hatch fmt --check
38+
39+
- name: Run tests
40+
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 examples.personalities.assistant 'explain modems to me please'
54+
hatch run main -p examples.personalities.c_auditer 'explain modems to me please'
55+
hatch run main -p examples.personalities.examples.echo 'explain modems to me please'
56+
hatch run main -t examples.taskflows.CVE-2023-2283.CVE-2023-2283
57+
hatch run main -t examples.taskflows.examples.echo
58+
hatch run main -t examples.taskflows.examples.example
59+
hatch run main -t examples.taskflows.examples.example_globals
60+
hatch run main -t examples.taskflows.examples.example_inputs
61+
hatch run main -t examples.taskflows.examples.example_large_list_result_iter
62+
hatch run main -t examples.taskflows.examples.example_repeat_prompt
63+
hatch run main -t examples.taskflows.examples.example_repeat_prompt_async
64+
hatch run main -t examples.taskflows.examples.example_repeat_prompt_dictionary
65+
hatch run main -t examples.taskflows.examples.example_reusable_prompt
66+
hatch run main -t examples.taskflows.examples.example_reusable_taskflows
67+
hatch run main -t examples.taskflows.examples.example_triage_taskflow
68+
hatch run main -t examples.taskflows.examples.single_step_taskflow
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ task: |
1414
your findings where possible.
1515
1616
toolboxes:
17-
- toolboxes.memcache
18-
- toolboxes.codeql
17+
- seclab_taskflow_agent.toolboxes.memcache
18+
- seclab_taskflow_agent.toolboxes.codeql
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ task: |
99
Echo user inputs using the echo tools.
1010
1111
toolboxes:
12-
- toolboxes.echo
12+
- seclab_taskflow_agent.toolboxes.echo
1313

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)