-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.63 KB
/
test_linux.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
name: Test Linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8,3.12]
steps:
- uses: actions/checkout@v2
- run: mkdir packages
- uses: actions/checkout@v2
- name: Get nuget packages
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- run: pwd
- run: ls -l
- name: Install nuget packages
run: |
nuget install DHI.MikeCore.Linux.rhel7 -Version 20.0.0 -OutputDirectory packages
- run: mkdir -p mikecore/bin/linux
- run: cp -r packages/DHI.MikeCore.Linux.rhel7.20.0.0/runtimes/linux-x64/native/* mikecore/bin/linux
- run: sudo apt-get install patchelf
- run: |
patchelf --set-rpath '$ORIGIN' mikecore/bin/linux/libufs.so
patchelf --set-rpath '$ORIGIN' mikecore/bin/linux/libeum.so
patchelf --set-rpath '$ORIGIN' mikecore/bin/linux/libMzCart.so
patchelf --set-rpath '$ORIGIN' mikecore/bin/linux/libpfs2004.so
patchelf --set-rpath '$ORIGIN' mikecore/bin/linux/libxerces-c-3.1.so
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install mikecore-python
run: pip install .
- name: Test with pytest
run: pytest