-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (79 loc) · 2.44 KB
/
ci.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: compile and run colitest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
compile:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.9]
# os: [ubuntu-latest]
os: [ubuntu-latest]
toolchain:
- {compiler: intel, version: '2021.4'}
- {compiler: intel, version: '2022.1'}
- {compiler: intel, version: '2022.2.1'}
- {compiler: intel, version: '2023.0'}
- {compiler: intel, version: '2023.1'}
- {compiler: intel, version: '2023.2'}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: |
src
build
powr
test
- name: get fortran compiler
uses: ssciwr/[email protected]
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
install_mkl: "true"
- name: get compiler version
run: ${{ env.FC }} --version
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: compile powr intel classic
run: |
make intel_classic
make clean_build
make intel_classic_debug
- name: set up the job and run base tests
run: |
if [ -z "$DYLD_LIBRARY_PATH" ]; then
echo "DYLD_LIBRARY_PATH not set - setting it now.."
export DYLD_LIBRARY_PATH=$MKLLIB:$DYLD_LIBRARY_PATH
fi
python -m pytest -svv test/test_colitest.py --cov=. --cov-report=xml
- name: compile powr with ifx
run: |
make small
make clean_build
make debug
- name: set up the job and run base tests
run: |
if [ -z "$DYLD_LIBRARY_PATH" ]; then
echo "DYLD_LIBRARY_PATH not set - setting it now.."
export DYLD_LIBRARY_PATH=$MKLLIB:$DYLD_LIBRARY_PATH
fi
python -m pytest -svv test/test_colitest.py --cov=. --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}