Skip to content

Commit 64caccb

Browse files
committed
Always upload artifacts
1 parent 724d1d7 commit 64caccb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ jobs:
133133
run: Rscript --vanilla tests/IVIMmodels/unit_tests/analyze.r test_output.csv test_duration.csv
134134
- name: Upload figures
135135
uses: actions/upload-artifact@v3
136+
if: always()
136137
with:
137138
name: Figures
138139
path: |
@@ -169,6 +170,7 @@ jobs:
169170
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
170171
- name: Upload data
171172
uses: actions/upload-artifact@v3
173+
if: always()
172174
with:
173175
name: Comparison
174176
path: |

tests/IVIMmodels/unit_tests/compare.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ keep_columns_reference <- c("Algorithm", "Region", "SNR", "f", "Dp", "D", "f_mu"
3838
keep_columns_test <- c("Algorithm", "Region", "SNR", "index", "f", "Dp", "D", "f_fitted", "Dp_fitted", "D_fitted")
3939

4040
test <- read_csv(test_file) %>%
41-
select(keep_columns_test) %>%
41+
select(all_of(keep_columns_test)) %>%
4242
# Convert Algorithm and Region to factors
4343
mutate(Algorithm = as.factor(Algorithm), Region = as.factor(Region))
4444

@@ -94,7 +94,7 @@ if (nchar(reference_file) == 0) {
9494

9595
# Read data from CSV files and select only relevant columns
9696
reference <- read_csv(reference_file) %>%
97-
select(keep_columns_reference) %>%
97+
select(all_of(keep_columns_reference)) %>%
9898
# Convert Algorithm and Region to factors
9999
mutate(Algorithm = as.factor(Algorithm), Region = as.factor(Region))
100100

0 commit comments

Comments
 (0)