forked from score-p/scorep_binding_python
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.44 KB
/
unit_tests.yml
File metadata and controls
56 lines (50 loc) · 1.44 KB
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
name: Unit tests
on: [push, pull_request]
env:
SCOREP_TIMER: clock_gettime # tsc causes warnings
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
python: [2.7, 3.5, 3.6, 3.7, 3.8]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- id: cache
uses: actions/cache@v1
with:
path: ~/scorep
key: scorep
- name: Install system dependencies
run: sudo apt install gcc-7-plugin-dev libopenmpi-dev openmpi-bin
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
mkdir /tmp/buildScorep && cd /tmp/buildScorep
wget https://www.vi-hps.org/cms/upload/packages/scorep/scorep-6.0.tar.gz
tar xf scorep-6.0.tar.gz
cd scorep-6.0
mkdir build && cd build
../configure --enable-shared --prefix=$HOME/scorep
make -j3 && make install
- name: Setup environment
run: echo "::add-path::$HOME/scorep/bin"
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}
architecture: x64
- name: Install Python packages
run: |
pip install --upgrade pip
pip install numpy mpi4py
- name: Build python bindings
run: pip install .
- name: Run tests
working-directory: test
run: ./test.py