Skip to content

Commit d5f0a8d

Browse files
committed
Avoid the dummy job
1 parent b6ba840 commit d5f0a8d

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

.github/workflows/unit_tests.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,31 @@ concurrency:
99
group: ${{format('{0}:{1}:{2}', github.repository, github.ref, github.workflow)}}
1010
cancel-in-progress: true
1111

12+
env:
1213
jobs:
13-
setup:
14-
runs-on: ubuntu-24.04
15-
outputs:
16-
lmod7: Lmod-7.8.22
17-
lmod8: Lmod-8.7.6
18-
modulesTcl: modules-tcl-1.147
19-
modules3: modules-3.2.10
20-
modules4: modules-4.1.4
21-
steps:
22-
- run: "true"
2314
build:
24-
needs: setup
2515
runs-on: ${{matrix.os || 'ubuntu-24.04'}}
2616
strategy:
2717
matrix:
2818
python: [3.7]
2919
os: [ubuntu-22.04]
3020
modules_tool:
31-
# use variables defined by 'setup' job above, see also
32-
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
33-
- ${{needs.setup.outputs.lmod7}}
34-
- ${{needs.setup.outputs.lmod8}}
35-
- ${{needs.setup.outputs.modulesTcl}}
36-
- ${{needs.setup.outputs.modules3}}
37-
- ${{needs.setup.outputs.modules4}}
21+
- &lmod7 Lmod-7.8.22
22+
- &lmod8 Lmod-8.7.6
23+
- &modulesTcl modules-tcl-1.147
24+
- &modules3 modules-3.2.10
25+
- &modules4 modules-4.1.4
3826
lc_all: [""]
3927
include:
4028
# Test different Python 3 versions with Lmod 8.x
4129
- python: 3.8
42-
modules_tool: ${{needs.setup.outputs.lmod8}}
30+
modules_tool: *lmod8
4331
- python: 3.9
44-
modules_tool: ${{needs.setup.outputs.lmod8}}
32+
modules_tool: *lmod8
4533
- python: '3.10'
46-
modules_tool: ${{needs.setup.outputs.lmod8}}
34+
modules_tool: *lmod8
4735
- python: '3.11'
48-
modules_tool: ${{needs.setup.outputs.lmod8}}
36+
modules_tool: *lmod8
4937
fail-fast: false
5038
steps:
5139
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)