From d9060fdadd50a952f9b44091bc4c0720f1a003ed Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Tue, 12 Dec 2023 13:42:25 -0500 Subject: [PATCH 1/3] added macos on the test workflows --- .github/workflows/python_ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index b34f16d4..79d8a32d 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -6,7 +6,8 @@ jobs: fail-fast: false matrix: version: ['3.9', '3.10', '3.11'] - runs-on: ubuntu-latest + os: [ubuntu-latest,macos-latest] + runs-on: ${{ matrix.os }} steps: - name: install mpi run: sudo apt update && sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev From 937ed51d5f6d85fd479717535523d3c3b1b282c6 Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Tue, 12 Dec 2023 17:11:15 -0500 Subject: [PATCH 2/3] added conditional step to install mpi on ubuntu or macos --- .github/workflows/python_ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 79d8a32d..734ab1f6 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -9,8 +9,12 @@ jobs: os: [ubuntu-latest,macos-latest] runs-on: ${{ matrix.os }} steps: - - name: install mpi - run: sudo apt update && sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev + - name: install mpi in ubuntu + if: matrix.os == 'ubuntu-latest' + run: sudo apt update && sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev + - name: install mpi macos + if: matrix.os == 'macos-latest' + run: brew install open-mpi - uses: actions/checkout@v3 - name: setup python uses: actions/setup-python@v4 From fd4925a0db3c192f8409aeb82edcc94c1107d5f9 Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Thu, 14 Dec 2023 11:35:30 -0500 Subject: [PATCH 3/3] Update python_ci.yml removing extra dependencies in linux installation --- .github/workflows/python_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 734ab1f6..8bc33900 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -11,7 +11,7 @@ jobs: steps: - name: install mpi in ubuntu if: matrix.os == 'ubuntu-latest' - run: sudo apt update && sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev + run: sudo apt update && sudo apt-get install openmpi-bin - name: install mpi macos if: matrix.os == 'macos-latest' run: brew install open-mpi