-
Notifications
You must be signed in to change notification settings - Fork 14
66 lines (58 loc) · 1.99 KB
/
ci_dcorelib.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Run tests with dcorelib
on: [push, pull_request]
jobs:
build:
name: |
${{ matrix.os }}, numpy==${{ matrix.numpy }}, scipy==${{ matrix.scipy }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
numpy: 1.16
scipy: 1.4
python: 3.6
#- os: ubuntu-latest
#numpy: auto
#scipy: auto
#python: 3.9
steps:
- uses: actions/checkout@v2
- name: apt
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt update
sudo apt install liblapack-dev openmpi-bin libopenmpi-dev libscalapack-openmpi-dev
- uses: mpi4py/setup-mpi@v1
- name: Set up python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install numpy ${{ matrix.numpy }}, scipy ${{ matrix.scipy }}
if: ${{ matrix.numpy != 'auto' }}
run: |
pip install numpy==${{ matrix.numpy}} scipy==${{ matrix.scipy }}
- name: Install package with testing dependencies
run: |
pip install .[dev]
- name: make workspace [HPhi]
run: |
pwd
cmake -E make_directory ${{runner.workspace}}/HPhi/build
- name: download [HPhi]
working-directory: ${{runner.workspace}}/HPhi
run: |
wget https://github.com/issp-center-dev/HPhi/releases/download/v3.5.0/HPhi-3.5.0.tar.gz
tar zxvf HPhi-3.5.0.tar.gz
- name: cmake [HPhi]
working-directory: ${{runner.workspace}}/HPhi/build
shell: bash
run: |
cmake -DCMAKE_VERBOSE_MAKEFILE=ON $GITHUB_WORKSPACE ../HPhi-3.5.0 -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/HPhi
make install
- name: Test with pytest
run: |
export DCORE_TRIQS_COMPAT=1
export PATH=${{runner.workspace}}/HPhi/bin:$PATH
pytest tests/non-mpi/*/*.py
mpirun -np 2 pytest tests/mpi/*/*.py