|
1 | 1 | name: CI |
| 2 | + |
2 | 3 | on: |
3 | | - - push |
4 | | - - pull_request |
| 4 | + push: |
| 5 | + branches: [master] |
| 6 | + paths-ignore: |
| 7 | + - 'CONTRIBUTING.md' |
| 8 | + - 'CODE_OF_CONDUCT.md' |
| 9 | + - 'LICENSE' |
| 10 | + - 'README.md' |
| 11 | + - 'NEWS.md' |
| 12 | + pull_request: |
| 13 | + paths-ignore: |
| 14 | + - 'CONTRIBUTING.md' |
| 15 | + - 'CODE_OF_CONDUCT.md' |
| 16 | + - 'LICENSE' |
| 17 | + - 'README.md' |
| 18 | + - 'NEWS.md' |
| 19 | + workflow_dispatch: # Allow manual triggering of the workflow from the Actions tab |
| 20 | + |
| 21 | +# Cancel redundant CI runs: always for PRs, never for pushes to master |
| 22 | +concurrency: |
| 23 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 24 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 25 | + |
5 | 26 | jobs: |
6 | | - SequentialTests: |
7 | | - name: Serial Tests - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
8 | | - runs-on: ${{ matrix.os }} |
| 27 | + prime-cache: |
| 28 | + name: Prime cache - ${{ matrix.version }} - ubuntu-latest - x64 |
| 29 | + runs-on: ubuntu-latest |
9 | 30 | strategy: |
10 | | - fail-fast: false |
11 | 31 | matrix: |
12 | | - version: |
13 | | - - '1.10' |
14 | | - os: |
15 | | - - ubuntu-latest |
16 | | - arch: |
17 | | - - x64 |
| 32 | + version: ['lts', '1'] |
18 | 33 | steps: |
19 | | - - uses: actions/checkout@v5 |
| 34 | + - uses: actions/checkout@v6 |
20 | 35 | - uses: julia-actions/setup-julia@v2 |
21 | 36 | with: |
22 | 37 | version: ${{ matrix.version }} |
23 | | - arch: ${{ matrix.arch }} |
| 38 | + arch: x64 |
24 | 39 | - uses: julia-actions/cache@v2 |
25 | 40 | - uses: julia-actions/julia-buildpkg@v1 |
26 | | - - run: julia --project=. -e 'using Pkg; Pkg.instantiate()' |
27 | | - - run: julia --project=. --color=yes --check-bounds=yes test/sequential/runtests.jl |
28 | | - - uses: julia-actions/julia-processcoverage@v1 |
29 | | - - uses: codecov/codecov-action@v5 |
30 | | - with: |
31 | | - verbose: true |
32 | | - token: ${{ secrets.CODECOV_TOKEN }} |
33 | | - flags: sequential |
34 | | - MPITests: |
35 | | - name: MPI Tests - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
36 | | - runs-on: ${{ matrix.os }} |
| 41 | + |
| 42 | + test: |
| 43 | + needs: [prime-cache] |
| 44 | + name: ${{ matrix.testcase }} - ${{ matrix.version }} - ubuntu-latest - x64 - ${{ github.event_name }} |
| 45 | + runs-on: ubuntu-latest |
37 | 46 | strategy: |
38 | 47 | fail-fast: false |
39 | 48 | matrix: |
40 | 49 | version: |
41 | | - - '1.10' |
42 | | - os: |
43 | | - - ubuntu-latest |
44 | | - arch: |
45 | | - - x64 |
| 50 | + - 'lts' |
| 51 | + - '1' |
| 52 | + testcase: |
| 53 | + - seq-geometry |
| 54 | + - seq-fespaces |
| 55 | + - seq-physics |
| 56 | + - seq-transient |
| 57 | + - seq-adaptivity |
| 58 | + - seq-misc |
| 59 | + - mpi-geometry |
| 60 | + - mpi-fespaces |
| 61 | + - mpi-physics |
| 62 | + - mpi-transient |
| 63 | + - mpi-adaptivity |
| 64 | + - mpi-misc |
46 | 65 | steps: |
47 | | - - uses: actions/checkout@v5 |
48 | | - - uses: julia-actions/cache@v2 |
| 66 | + - uses: actions/checkout@v6 |
49 | 67 | - uses: julia-actions/setup-julia@v2 |
50 | 68 | with: |
51 | 69 | version: ${{ matrix.version }} |
52 | | - arch: ${{ matrix.arch }} |
53 | | - - run: | |
54 | | - julia --project=test/TestApp/ -e ' |
55 | | - using Pkg |
56 | | - Pkg.develop(PackageSpec(path=pwd())) |
57 | | - Pkg.instantiate()' |
58 | | - - run: cd test/TestApp/compile; ./compile.sh |
59 | | - - run: julia --project=test/TestApp/ --color=yes --check-bounds=yes test/mpi/runtests.jl test/TestApp/compile/TestApp.so |
| 70 | + arch: x64 |
| 71 | + - uses: julia-actions/cache@v2 |
| 72 | + - uses: julia-actions/julia-buildpkg@v1 |
| 73 | + - uses: julia-actions/julia-runtest@v1 |
| 74 | + env: |
| 75 | + TESTCASE: ${{ matrix.testcase }} |
60 | 76 | - uses: julia-actions/julia-processcoverage@v1 |
61 | 77 | - uses: codecov/codecov-action@v5 |
62 | 78 | with: |
63 | 79 | verbose: true |
64 | 80 | token: ${{ secrets.CODECOV_TOKEN }} |
65 | | - flags: mpi |
| 81 | + flags: ${{ matrix.testcase }} |
| 82 | + |
66 | 83 | docs: |
67 | 84 | name: Documentation |
68 | 85 | runs-on: ubuntu-latest |
69 | 86 | steps: |
70 | | - - uses: actions/checkout@v5 |
| 87 | + - uses: actions/checkout@v6 |
71 | 88 | - uses: julia-actions/setup-julia@v2 |
72 | 89 | with: |
73 | | - version: '1.10' |
| 90 | + version: '1' |
74 | 91 | - run: | |
75 | 92 | julia --project=docs -e ' |
76 | 93 | using Pkg |
|
79 | 96 | - run: julia --project=docs docs/make.jl |
80 | 97 | env: |
81 | 98 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
82 | | - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
| 99 | + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
0 commit comments