File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed
Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - uses : actions/setup-python@v5
15+ with :
16+ python-version : " 3.11"
17+
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install -r requirements.txt
22+
23+ - name : Lint (ruff)
24+ run : |
25+ ruff check .
26+
27+ - name : Run tests
28+ run : |
29+ pytest -q
30+
Original file line number Diff line number Diff line change 1+ import sys
2+ from pathlib import Path
3+
4+ # Ensure the project root is on sys.path so tests can import utils.py
5+ PROJECT_ROOT = Path (__file__ ).resolve ().parent
6+ if str (PROJECT_ROOT ) not in sys .path :
7+ sys .path .insert (0 , str (PROJECT_ROOT ))
8+
Original file line number Diff line number Diff line change 11streamlit
22pandas
33plotly
4- requests
4+ requests
5+ ruff
6+ pytest
7+ matplotlib
You can’t perform that action at this time.
0 commit comments