Merge pull request #114 from gnbaker/master #205
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 build (no MPI) | |
permissions: read-all | |
# Triggers the workflow on push or pull request events but only for the master branch | |
on: | |
push: | |
branches: [ master , development ] | |
pull_request: | |
branches: [ master , development ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build-ubuntu-conda-gcc" | |
build-ubuntu-conda-gcc: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: 3.7 | |
- name: Conda info, list, pybind install and activate | |
shell: bash -l {0} | |
run: | | |
conda info | |
conda list | |
conda install -y pybind11 | |
conda activate /usr/share/miniconda/envs/test | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: configure | |
shell: bash -l {0} | |
run: mkdir build && cd build && which python && whereis python && CXX=g++ cmake PYTHON_EXECUTABLE=/usr/share/miniconda/envs/test/bin/python -DIqsMPI=OFF -DIqsPython=ON -DIqsUtest=OFF .. | |
- name: build | |
run: cmake --build build --target intelqs_py | |
- name: unit test | |
run: cd unit_test && which python && whereis python && ls ../build/lib && /usr/share/miniconda/envs/test/bin/python import_iqs.py |