From 812b33036ce5a703b05e33f4e695013fed20416f Mon Sep 17 00:00:00 2001 From: Usman Akinyemi Date: Sun, 2 Mar 2025 11:47:00 +0530 Subject: [PATCH] fix: update upload and download artifact actions to v4 The upload and download artifact actions using v3 were deprecated, and the website deployment depends on them. Updated both actions to v4 in the workflow run to ensure proper deployment. --- .github/workflows/analysis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 55f59cf5..7f5c8b4e 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -70,7 +70,7 @@ jobs: run: | python -m pytest -m slow --selectAlgorithm ${{ matrix.algorithm }} --saveFileName test_output_${{ matrix.algorithm }}_${{ matrix.SNR }}.csv --SNR ${{ matrix.SNR }} --fitCount 300 --saveDurationFileName test_duration_${{ matrix.algorithm }}_${{ matrix.SNR }}.csv - name: Upload raw data - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Working_Data retention-days: 1 @@ -83,7 +83,7 @@ jobs: needs: build steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts - name: Merge fitting results @@ -95,7 +95,7 @@ jobs: head -n 1 $(ls artifacts/Working_Data/test_duration_*.csv | head -n 1) > test_duration.csv tail -q -n +2 artifacts/Working_Data/test_duration_*.csv >> test_duration.csv - name: Upload merged artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Data path: | @@ -121,13 +121,13 @@ jobs: any::data.table any::ggplot2 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Data - name: Generate figures run: Rscript --vanilla tests/IVIMmodels/unit_tests/analyze.r test_output.csv test_duration.csv - name: Upload figures - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: Figures @@ -158,13 +158,13 @@ jobs: any::tidyverse any::assertr - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Data - name: Test against previous results run: Rscript --vanilla tests/IVIMmodels/unit_tests/compare.r test_output.csv test_reference.csv tests/IVIMmodels/unit_tests/reference_output.csv test_results.csv - name: Upload data - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: Comparison