Skip to content

Commit 812b330

Browse files
committed
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.
1 parent 3120221 commit 812b330

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/analysis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
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
7272
- name: Upload raw data
73-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7474
with:
7575
name: Working_Data
7676
retention-days: 1
@@ -83,7 +83,7 @@ jobs:
8383
needs: build
8484
steps:
8585
- name: Download artifacts
86-
uses: actions/download-artifact@v3
86+
uses: actions/download-artifact@v4
8787
with:
8888
path: artifacts
8989
- name: Merge fitting results
@@ -95,7 +95,7 @@ jobs:
9595
head -n 1 $(ls artifacts/Working_Data/test_duration_*.csv | head -n 1) > test_duration.csv
9696
tail -q -n +2 artifacts/Working_Data/test_duration_*.csv >> test_duration.csv
9797
- name: Upload merged artifacts
98-
uses: actions/upload-artifact@v3
98+
uses: actions/upload-artifact@v4
9999
with:
100100
name: Data
101101
path: |
@@ -121,13 +121,13 @@ jobs:
121121
any::data.table
122122
any::ggplot2
123123
- name: Download artifacts
124-
uses: actions/download-artifact@v3
124+
uses: actions/download-artifact@v4
125125
with:
126126
name: Data
127127
- name: Generate figures
128128
run: Rscript --vanilla tests/IVIMmodels/unit_tests/analyze.r test_output.csv test_duration.csv
129129
- name: Upload figures
130-
uses: actions/upload-artifact@v3
130+
uses: actions/upload-artifact@v4
131131
if: always()
132132
with:
133133
name: Figures
@@ -158,13 +158,13 @@ jobs:
158158
any::tidyverse
159159
any::assertr
160160
- name: Download artifacts
161-
uses: actions/download-artifact@v3
161+
uses: actions/download-artifact@v4
162162
with:
163163
name: Data
164164
- name: Test against previous results
165165
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
166166
- name: Upload data
167-
uses: actions/upload-artifact@v3
167+
uses: actions/upload-artifact@v4
168168
if: always()
169169
with:
170170
name: Comparison

0 commit comments

Comments
 (0)