2021-06-07 14:05:41 +02:00
|
|
|
name: TREXIO CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
trexio_ubuntu:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: x86 Ubuntu latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
run: |
|
|
|
|
sudo add-apt-repository ppa:kelleyk/emacs
|
|
|
|
sudo apt-get install libhdf5-dev emacs26
|
|
|
|
|
|
|
|
- name: configure with autotools
|
|
|
|
run: |
|
|
|
|
./autogen.sh
|
2021-11-01 10:20:03 +01:00
|
|
|
./configure --enable-silent-rules
|
2021-06-07 14:05:41 +02:00
|
|
|
|
|
|
|
- name: compile TREXIO
|
|
|
|
run: make -j 2
|
|
|
|
|
|
|
|
- name: check TREXIO
|
|
|
|
run: make check
|
2021-09-14 10:17:20 +02:00
|
|
|
|
|
|
|
- name: create virtual environment
|
|
|
|
run: |
|
|
|
|
python3 -m venv --clear pytrexio-venv
|
|
|
|
source pytrexio-venv/bin/activate
|
|
|
|
|
|
|
|
- name: install Python API
|
|
|
|
run: make python-install
|
|
|
|
# alternatively we can also run pip install trexio to check PyPI installation
|
|
|
|
|
|
|
|
- name: check Python API
|
|
|
|
run: make python-test
|
|
|
|
|
2021-06-07 14:05:41 +02:00
|
|
|
- name: clean
|
|
|
|
run: make clean
|
|
|
|
|
|
|
|
trexio_macos:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
name: x86 MacOS latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
run: |
|
|
|
|
brew install emacs
|
|
|
|
brew install hdf5
|
|
|
|
brew install automake
|
|
|
|
|
|
|
|
- name: configure with autotools
|
|
|
|
run: |
|
|
|
|
./autogen.sh
|
2021-11-01 10:20:03 +01:00
|
|
|
./configure FC=gfortran-10 --enable-silent-rules
|
2021-06-07 14:05:41 +02:00
|
|
|
|
|
|
|
- name: compile TREXIO
|
|
|
|
run: make -j 2
|
|
|
|
|
|
|
|
- name: check TREXIO
|
|
|
|
run: make check
|
|
|
|
|
|
|
|
- name: clean
|
|
|
|
run: make clean
|