Skip to content

Commit 6291ca9

Browse files
committed
Revised github action
1 parent bc1e389 commit 6291ca9

File tree

3 files changed

+1298
-114
lines changed

3 files changed

+1298
-114
lines changed

.github/workflows/load-weekly-data.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,21 @@ jobs:
4343
run: |
4444
python -m pip install --upgrade pip
4545
pip install -r requirements.txt -r requirements-dev.txt
46+
- name: Check data library availability
47+
run: |
48+
python -V
49+
python - << 'PY'
50+
import importlib, sys
51+
for mod in ("nflreadpy","nfl_data_py"):
52+
try:
53+
m = importlib.import_module(mod)
54+
ver = getattr(m, "__version__", "(no __version__)")
55+
print(f"{mod} version: {ver}")
56+
except Exception as e:
57+
print(f"{mod} not importable: {e}")
58+
PY
4659
47-
- name: Run weekly loader (nflreadpy/nfl_data_py)
60+
- name: Run weekly loader
4861
shell: bash
4962
run: |
5063
ARGS=( )
@@ -54,8 +67,8 @@ jobs:
5467
if [ "${{ github.event_name }}" = "schedule" ] || [ "${{ inputs.allow_empty }}" = "true" ]; then
5568
ARGS+=(--allow-empty)
5669
fi
57-
# Prefer nflreadpy explicitly and enable verbose logging
58-
ARGS+=(--provider nflreadpy --verbose)
70+
# Enable verbose diagnostics in logs
71+
ARGS+=(--verbose)
5972
python scripts/load_weekly_data.py "${ARGS[@]}" --output nfl_weekly_stats.csv
6073
6174
- name: Upload CSV artifact

0 commit comments

Comments
 (0)