|
2 | 2 | name: EasyBuild framework unit tests |
3 | 3 | on: [push, pull_request] |
4 | 4 | jobs: |
| 5 | + setup: |
| 6 | + runs-on: ubuntu-latest |
| 7 | + outputs: |
| 8 | + lmod7: Lmod-7.8.22 |
| 9 | + lmod8: Lmod-8.4.27 |
| 10 | + modulesTcl: modules-tcl-1.147 |
| 11 | + modules3: modules-3.2.10 |
| 12 | + modules4: modules-4.1.4 |
| 13 | + steps: |
| 14 | + - run: "true" |
5 | 15 | build: |
| 16 | + needs: setup |
6 | 17 | runs-on: ubuntu-18.04 |
7 | 18 | strategy: |
8 | 19 | matrix: |
9 | 20 | python: [2.7, 3.6] |
10 | | - modules_tool: [Lmod-7.8.22, Lmod-8.4.27, modules-tcl-1.147, modules-3.2.10, modules-4.1.4] |
| 21 | + modules_tool: |
| 22 | + - ${{needs.setup.outputs.lmod7}} |
| 23 | + - ${{needs.setup.outputs.lmod8}} |
| 24 | + - ${{needs.setup.outputs.modulesTcl}} |
| 25 | + - ${{needs.setup.outputs.modules3}} |
| 26 | + - ${{needs.setup.outputs.modules4}} |
11 | 27 | module_syntax: [Lua, Tcl] |
12 | 28 | lc_all: [""] |
13 | 29 | # don't test with Lua module syntax (only supported in Lmod) |
14 | 30 | exclude: |
15 | | - - modules_tool: modules-tcl-1.147 |
| 31 | + - modules_tool: ${{needs.setup.outputs.modulesTcl}} |
16 | 32 | module_syntax: Lua |
17 | | - - modules_tool: modules-3.2.10 |
| 33 | + - modules_tool: ${{needs.setup.outputs.modules3}} |
18 | 34 | module_syntax: Lua |
19 | | - - modules_tool: modules-4.1.4 |
| 35 | + - modules_tool: ${{needs.setup.outputs.modules4}} |
20 | 36 | module_syntax: Lua |
21 | 37 | include: |
22 | 38 | # Test different Python versions with Lmod 8.x (with both Lua and Tcl module syntax) |
23 | 39 | - python: 3.5 |
24 | | - modules_tool: Lmod-8.4.27 |
| 40 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
25 | 41 | module_syntax: Lua |
26 | 42 | - python: 3.5 |
27 | | - modules_tool: Lmod-8.4.27 |
| 43 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
28 | 44 | module_syntax: Tcl |
29 | 45 | - python: 3.7 |
30 | | - modules_tool: Lmod-8.4.27 |
| 46 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
31 | 47 | module_syntax: Lua |
32 | 48 | - python: 3.7 |
33 | | - modules_tool: Lmod-8.4.27 |
| 49 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
34 | 50 | module_syntax: Tcl |
35 | 51 | - python: 3.8 |
36 | | - modules_tool: Lmod-8.4.27 |
| 52 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
37 | 53 | module_syntax: Lua |
38 | 54 | - python: 3.8 |
39 | | - modules_tool: Lmod-8.4.27 |
| 55 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
40 | 56 | module_syntax: Tcl |
41 | 57 | - python: 3.9 |
42 | | - modules_tool: Lmod-8.4.27 |
| 58 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
43 | 59 | module_syntax: Lua |
44 | 60 | - python: 3.9 |
45 | | - modules_tool: Lmod-8.4.27 |
| 61 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
46 | 62 | module_syntax: Tcl |
47 | 63 | # There may be encoding errors in Python 3 which are hidden when an UTF-8 encoding is set |
48 | 64 | # Hence run the tests (again) with LC_ALL=C and Python 3.6 (or any < 3.7) |
49 | 65 | - python: 3.6 |
50 | | - modules_tool: Lmod-8.4.27 |
| 66 | + modules_tool: ${{needs.setup.outputs.lmod8}} |
51 | 67 | module_syntax: Lua |
52 | 68 | lc_all: C |
53 | 69 | fail-fast: false |
|
0 commit comments