Skip to content

Add MPI and GPU tests on buildkite #79

Add MPI and GPU tests on buildkite

Add MPI and GPU tests on buildkite #79

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
tags: '*'
# Needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
climadiagnostics:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- '1.9'
- '1.10'
- '~1.11.0-0'
prefix:
- ''
- 'mpiexecjl -n 2'
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v1
- if: ${{ matrix.prefix != '' }}
run: |
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.install_mpiexecjl()'
echo "$HOME/.julia/bin" >> $GITHUB_PATH
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
with:
prefix: ${{ matrix.prefix }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: julia-actions/julia-processcoverage@latest
- uses: codecov/codecov-action@v4
if: ${{ matrix.version == '1.10' }}
with:
files: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Archive production artifacts
if: ${{ matrix.version == '1.10' }}
uses: actions/upload-artifact@v4
with:
name: flamegraphs
path: |
test/*.html