Skip to content

xband: windsave2fits, changes to radiation temperature and fixes to disk_diag file. #289

xband: windsave2fits, changes to radiation temperature and fixes to disk_diag file.

xband: windsave2fits, changes to radiation temperature and fixes to disk_diag file. #289

Workflow file for this run

name: "Python: continuous integration tests"
on:
push:
branches:
- "dev"
- "main"
pull_request:
branches:
- "dev"
- "main"
env:
PYTHON: ${{ github.workspace }}
jobs:
greeting:
name: Greeting job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Print out environment variables"
run: |
echo "WORKSPACE IS $GITHUB_WORKSPACE"
echo "PYTHON ENV VARIABLE IS: $PYTHON"
build_and_test:
name: Build Python and run tests
runs-on: ubuntu-latest
needs: greeting
steps:
- uses: actions/checkout@v3
#- name: "Installing build dependencies"
# run: sudo apt update && apt install -y build-essential cmake
- name: Configuring Python
run: ./configure
- name: Build GH Workflow version of Python
run: make gh_workflow_install
- uses: actions/setup-python@v3
with:
python-version: '3.x' # Version range
- name: Install Python (the language) dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
cd $PYTHON/examples/gh-workflow/
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# - name: Compile programs, again
# run: |
# cd $PYTHON/source
# make CC=gcc INDENT=no all
- name: Checking Python compiled and can read in inputs correctly
run: |
cd $PYTHON/examples/gh-workflow/
$PYTHON/bin/Setup_Py_Dir
$PYTHON/bin/py -i cv_macro_benchmark
$PYTHON/bin/py -i cv_standard
$PYTHON/bin/py -i fiducial_agn
$PYTHON/bin/py -i 1d_sn
$PYTHON/bin/py -i -d sv_detailedmode
$PYTHON/bin/py -i agn_ss_2010_modela
$PYTHON/bin/py -i XRB_standard.pf
$PYTHON/bin/py -i ngc5548
$PYTHON/bin/py -i lamp_post
$PYTHON/bin/py -i cv_standard_import
- name: Running unit tests
run: |
cd $PYTHON/source/tests
make check CC=gcc
- name: Running Balmer test case
run: |
cd $PYTHON/examples/gh-workflow/
$PYTHON/bin/py -f -v 1 balmer_test
python $PYTHON/py_progs/balmer_decrement.py balmer_test