Skip to content

Add github action to detect mpi_comm_world usage #41

Add github action to detect mpi_comm_world usage

Add github action to detect mpi_comm_world usage #41

name: Check MPI_COMM_WORLD
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Search for MPI_COMM_WORLD in modified lines
run: |
python $GITHUB_WORKSPACE/sampleScripts/check-mpi-comm-world-usage.py \
--base origin/${{ github.event.pull_request.base.ref }} \
--head ${{ github.event.pull_request.head.sha }}