Skip to content

Run base code on different python versions #10

Run base code on different python versions

Run base code on different python versions #10

Workflow file for this run

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 .