diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af343e0..8e6bbd7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,12 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Cache the data + uses: actions/cache@v4 + with: + key: data-${{ hashFiles('**/download_data.py') }} + path: ./data + - name: Setup Conda uses: conda-incubator/setup-miniconda@v2 with: @@ -39,6 +45,9 @@ jobs: - name: Install the ramp-kit's dependencies run: pip install -r requirements.txt + - name: Download data + run: python download_data.py + - name: Ramp test run: ramp-test @@ -62,6 +71,13 @@ jobs: steps: - uses: actions/checkout@v3 + + - name: Cache the data + uses: actions/cache@v4 + with: + key: data-${{ hashFiles('**/download_data.py') }} + path: ./data + - name: Set up Python uses: actions/setup-python@v3 with: @@ -72,5 +88,8 @@ jobs: pip install seaborn nbconvert[test] pip install -r requirements.txt + - name: Download data + run: python download_data.py + - name: Check the starting-kit notebook run: jupyter nbconvert --execute template_starting_kit.ipynb --to html --ExecutePreprocessor.kernel_name=python3