diff --git a/.github/workflows/train-spread-predictor.yaml b/.github/workflows/train-spread-predictor.yaml index 8518b59..72b24e9 100644 --- a/.github/workflows/train-spread-predictor.yaml +++ b/.github/workflows/train-spread-predictor.yaml @@ -29,7 +29,7 @@ jobs: - name: Install dependencies with Poetry run: poetry install - - name: Run Python script + - name: Download data and train model run: | ls -a cd $GITHUB_WORKSPACE diff --git a/nfl_analytics/data.py b/nfl_analytics/data.py index 60c1957..2dccb14 100644 --- a/nfl_analytics/data.py +++ b/nfl_analytics/data.py @@ -11,13 +11,14 @@ import pandas as pd from nfl_analytics.config import ( - DATA_DIR, + DATA_DIR as DATA_DIR_, ASSET_DIR as ASSET_DIR_, ) THIS_DIR = os.path.dirname(os.path.abspath(__file__)) ASSET_DIR = os.path.join(THIS_DIR, ASSET_DIR_) +DATA_DIR = os.path.join(THIS_DIR, DATA_DIR_) def download_data(years=range(1999, 2024)):