Skip to content

Commit ecff191

Browse files
committed
ci: add GitHub Actions workflow
1 parent f3fff77 commit ecff191

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
run-scenarios:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.11'
19+
cache: 'pip'
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install --upgrade pip
24+
pip install -r requirements.txt
25+
26+
- name: Run normal_success scenario
27+
run: python run_demo.py --scenario normal_success
28+
29+
- name: Run retry_then_success scenario
30+
run: python run_demo.py --scenario retry_then_success
31+
32+
- name: Run fallback_after_failure scenario
33+
run: python run_demo.py --scenario fallback_after_failure

0 commit comments

Comments
 (0)