compiler: separate the compilation pipelines and improve CI #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install MLIR, Python dependencies, run tests and lint with a single version of Python | |
# File inherited from https://github.com/xdslproject/xdsl/blob/main/.github/workflows/ci-mlir.yml | |
name: CI - MLIR-based Testing for MPI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the master branch | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: papychacal/xdsl-llvm | |
steps: | |
- name: Checkout Devito | |
uses: actions/checkout@v3 | |
- name: Install native dependencies | |
run: | | |
apt install -y curl mpich | |
- name: Upgrade pip | |
run: | | |
pip install --upgrade pip | |
- name: Install requirements and xDSL | |
run: | | |
pip install -e .[tests] | |
pip install mpi4py | |
pip install git+https://github.com/xdslproject/xdsl@2825897b87443c9369abf89871f4721e2fce2da9 | |
- name: Test with MPI | |
run: | | |
# Add mlir-opt to the path | |
export PATH=/xdsl-sc/llvm-project/build/bin/:$PATH | |
pytest -m "parallel" -k "not adjoint" tests/test_xdsl_* |