Building and testing Basins Python on branch <> to <> by @ElenaTerzic #6
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: Build and test Python | |
run-name: Building and testing Basins Python on branch <${{ github.head_ref }}> to <${{ github.base_ref }}> by @${{ github.actor }} | |
on: | |
push: | |
branches: [ "master", "main" ] | |
pull_request: | |
branches: [ "master", "main" ] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_python: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
# Setup MPI and Python for this job | |
- name: Set up Python 3.8.5 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8.5 | |
# Run pyLOM compilation and deployment | |
- name: Set up configuration | |
run: | | |
sed -i 's/USE_COMPILED = ON/USE_COMPILED = OFF/g' options.cfg | |
- name: Set up dependencies | |
run: make requirements | |
- name: Build compiled code | |
run: make python | |
- name: Install | |
run: make install | |
# Run Examples | |
- name: Run examples | |
run: | | |
pip install matplotlib | |
python Examples/example_basic.py | |
python Examples/example_plot_basin.py | |
python Examples/example_plot_composedbasin.py | |
python Examples/example_skadar.py |