test cmake and python build #1
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: Python cmake build test | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
- py_v* | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
container: quay.io/pypa/manylinux2014_x86_64:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install gfortran | |
run: | | |
yum install -y devtoolset-11-toolchain | |
- name: Compile and install python bindings | |
run: | | |
scl enable devtoolset-11 bash | |
/opt/python/cp311-cp311/bin/python -m pip install . | |
- name: Test python bindings | |
run: | | |
/opt/python/cp311-cp311/bin/python -m pip install pytest | |
/opt/python/cp311-cp311/bin/python -m pytest -s python/test | |