Skip to content

Commit f83f5f1

Browse files
committed
ci: add GitHub Actions workflow running tests on Python 3.10/3.11/3.12
1 parent 752f10b commit f83f5f1

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Run unit tests
26+
run: python -m unittest tests.test_backtest -v
27+
- name: Smoke test backtest engine
28+
run: python backtest.py > /dev/null
29+
- name: Smoke test regime comparison
30+
run: python compare_regime_scenarios.py > /dev/null
31+
- name: Smoke test live_demo (mock fallback)
32+
run: python live_demo.py --json > /dev/null
33+
- name: Validate skill.yaml syntax
34+
run: python -c "import yaml; yaml.safe_load(open('skill.yaml'))"

0 commit comments

Comments
 (0)