Skip to content

Commit 795d3e6

Browse files
Update analysis.yml
1 parent 3504fb5 commit 795d3e6

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/analysis.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,32 +79,36 @@ jobs:
7979
test_output_${{ matrix.algorithm }}_${{ matrix.SNR }}.csv
8080
test_duration_${{ matrix.algorithm }}_${{ matrix.SNR }}.csv
8181
overwrite: true
82-
8382
merge:
8483
runs-on: ubuntu-latest
8584
needs: build
8685
steps:
87-
- name: Download artifacts
86+
- name: Download all artifacts
8887
uses: actions/download-artifact@v4
8988
with:
9089
path: artifacts
90+
9191
- name: Merge fitting results
9292
run: |
93-
head -n 1 $(ls artifacts/Working_Data_${{ matrix.algorithm }}_${{ matrix.SNR }}_${{ github.run_attempt }}/test_output_*.csv | head -n 1) > test_output.csv
94-
tail -q -n +2 artifacts/Working_Data_${{ matrix.algorithm }}_${{ matrix.SNR }}_${{ github.run_attempt }}/test_output_*.csv >> test_output.csv
93+
mkdir -p merged
94+
# Find all test_output CSVs and merge them
95+
head -n 1 $(find artifacts -type f -name "test_output_*.csv" | head -n 1) > merged/test_output.csv
96+
find artifacts -type f -name "test_output_*.csv" | xargs tail -q -n +2 >> merged/test_output.csv
97+
9598
- name: Merge timing results
9699
run: |
97-
head -n 1 $(ls artifacts/Working_Data_${{ matrix.algorithm }}_${{ matrix.SNR }}_${{ github.run_attempt }}/test_duration_*.csv | head -n 1) > test_duration.csv
98-
tail -q -n +2 artifacts/Working_Data_${{ matrix.algorithm }}_${{ matrix.SNR }}_${{ github.run_attempt }}/test_duration_*.csv >> test_duration.csv
100+
mkdir -p merged
101+
head -n 1 $(find artifacts -type f -name "test_duration_*.csv" | head -n 1) > merged/test_duration.csv
102+
find artifacts -type f -name "test_duration_*.csv" | xargs tail -q -n +2 >> merged/test_duration.csv
103+
99104
- name: Upload merged artifacts
100105
uses: actions/upload-artifact@v4
101106
with:
102107
name: Data
103108
path: |
104-
test_output.csv
105-
test_duration.csv
109+
merged/test_output.csv
110+
merged/test_duration.csv
106111
overwrite: true
107-
108112
analyze:
109113
runs-on: ubuntu-latest
110114
needs: merge

0 commit comments

Comments
 (0)