Skip to content

Commit

Permalink
Merge branch 'add-github-ci'
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Apr 7, 2020
2 parents 171553a + bdded8b commit bb1a1b3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
.dockerignore
Dockerfile
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI tests

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v1
- name: Get Cmake version
run: |
cmake --version
- name: Update submodules
run: |
git submodule init
git submodule update
- name: Install dependencies
run: |
sudo apt-get install libjansson-dev
sudo apt-get install libhdf5-dev
sudo apt-get install python3-dev
sudo apt-get install python3-numpy
sudo apt-get install python3-yaml
sudo apt-get install python3-psycopg2
sudo apt-get install swig3.0
sudo apt-get install doxygen
sudo apt-get install graphviz
- name: configure
run: |
mkdir build
cd build
cmake ..
cd -
- name: make
run: |
cd build
make
cd -
- name: make test
run: |
cd build
make test
cd -
2 changes: 2 additions & 0 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ project(dlite-bindings-python C)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14")
cmake_policy(SET CMP0078 OLD)
cmake_policy(SET CMP0086 OLD)
#cmake_policy(SET CMP0079 NEW)
endif()

# Try to require correct version of swig depending on Python version
Expand Down Expand Up @@ -71,6 +72,7 @@ swig_add_library(dlite
SOURCES dlite.i
)

#target_link_libraries(dlite
swig_link_libraries(dlite
dlite
dlite-utils
Expand Down

0 comments on commit bb1a1b3

Please sign in to comment.