Run base code on different python versions #10
Workflow file for this run
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
name: Run base code on different python versions | |
'on': workflow_dispatch | |
jobs: | |
python_run_scripts: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ['3.9', '3.10', '3.11'] | |
os: [ubuntu-latest,macos-latest] | |
runs-on: ${{ matrix.os }} | |
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 | |
- 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 | |
with: | |
python-version: ${{ matrix.version }} # install the python version needed | |
cache: "pip" | |
- run: pip install . |