Skip to content

Commit 69d8654

Browse files
committed
💚 Prevent collision of artifact uploads
1 parent 87a12ba commit 69d8654

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build_run_linux.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Archive Modelica Binaries
2626
uses: actions/upload-artifact@v4
2727
with:
28-
name: om-binaries-${{ github.run_id }}
28+
name: om-binaries-${{ github.run_id }}-${{ matrix.python-version }}
2929
path: build/
3030
retention-days: 1
3131
test_module_build:
@@ -47,7 +47,7 @@ jobs:
4747
- name: Archive Plasma Profiles
4848
uses: actions/upload-artifact@v4
4949
with:
50-
name: om-plasma-profiles-${{ github.run_id }}
50+
name: om-plasma-profiles-${{ github.run_id }}-${{ matrix.python-version }}
5151
path: power_balance/profiles/mat_profile_files/*.mat
5252
retention-days: 1
5353
model_run_om:
@@ -64,12 +64,12 @@ jobs:
6464
- name: Retrieve Open Modelica model binaries
6565
uses: actions/download-artifact@v4
6666
with:
67-
name: om-binaries-${{ github.run_id }}
67+
name: om-binaries-${{ github.run_id }}-${{ matrix.python-version }}
6868
path: build
6969
- name: Retrieve Plasma profiles
7070
uses: actions/download-artifact@v4
7171
with:
72-
name: om-plasma-profiles-${{ github.run_id }}
72+
name: om-plasma-profiles-${{ github.run_id }}-${{ matrix.python-version }}
7373
path: power_balance/profiles/mat_profile_files
7474
- name: Run Models
7575
run: |
@@ -131,7 +131,7 @@ jobs:
131131
retention-days: 1
132132
unit_tests:
133133
container:
134-
image: openmodelica/openmodelica:v1.21.0-ompython
134+
image: openmodelica/openmodelica:v1.25.0-ompython
135135
name: Unit Tests (${{ matrix.os }} Python${{ matrix.python-version }})
136136
runs-on: ${{ matrix.os }}
137137
strategy:
@@ -150,7 +150,7 @@ jobs:
150150
uv run -p ${{ matrix.python-version }} coverage run --data-file=coverage_unit --source=power_balance -m pytest tests/unit_tests
151151
- name: Archive Run Coverage
152152
uses: actions/upload-artifact@v4
153-
if: ${{ github.ref_name == 'main' }}
153+
if: ${{ github.ref_name == 'main' && matrix.python-version == '3.13' }}
154154
with:
155155
name: coverage-unit
156156
path: coverage_unit

0 commit comments

Comments
 (0)