-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (53 loc) · 2.01 KB
/
python-tests.yml
File metadata and controls
67 lines (53 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Python tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install IX package
run: python -m pip install -e .
- name: Run unit tests
run: python -m unittest discover -s tests -p "test_*.py" -v
- name: Run IX CLI smoke tests
run: |
ix version
ix about
for file in examples/*.ix; do
ix check "$file"
ix format "$file" --check
done
ix run examples/hello.ix
ix trace examples/hello.ix
ix test examples/hello.ix
ix assure examples/hello.ix --execute
ix trace examples/branching_review.ix --input score=91
ix run examples/branching_review.ix --input score=70
ix test examples/branching_review.ix --input score=91
ix assure examples/branching_review.ix --execute --input score=91
ix run examples/governed_tool.ix
ix trace examples/governed_tool.ix
ix assure examples/governed_tool.ix --execute
ix orchestrate examples/multi_agent_review.ix --agent Coordinator
ix orchestrate examples/multi_agent_review.ix --agent Coordinator --json
ix assure examples/multi_agent_review.ix --agent Coordinator --execute
ix evidence examples/multi_agent_review.ix --agent Coordinator --out .tmp/ix-evidence-smoke
ix assure examples/assurance_ready.ix --execute --input score=91
ix trace examples/assurance_ready.ix --input score=70