-
Notifications
You must be signed in to change notification settings - Fork 10
78 lines (63 loc) · 2.66 KB
/
installation.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
name: Test installation of the library
# The workflow gets triggered by pushes and pull requests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install docker
run: |
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
- name: Test installation inside docker containers (serial)
working-directory: ${{github.workspace}}/docker/serial
run: |
ls
docker build -t serial .
echo "Testing installation from PyPi"
docker run -t -v "$(pwd)"/../../:/app serial bash -c \
"cd /app && pip install .;
python3 -c 'import CLUEstering' || exit 0"
- name: Test installation inside docker containers (serial without boost)
working-directory: ${{github.workspace}}/docker/no_boost
run: |
docker build -t noboost .
echo "Testing installation from PyPi"
docker run -t -v "$(pwd)"/../../:/app noboost bash -c \
"cd /app && pip install .;
python3 -c 'import CLUEstering' || exit 0"
- name: Test installation inside docker containers (tbb)
working-directory: ${{github.workspace}}/docker/tbb
run: |
docker build -t tbb .
echo "Testing installation from PyPi"
docker run -t -v "$(pwd)"/../../:/app tbb bash -c \
"cd /app && pip install .;
python3 -c 'import CLUEstering' || exit 0"
- name: Test installation inside docker containers (without gcc)
working-directory: ${{github.workspace}}/docker/no_gcc
run: |
docker build -t nogcc .
echo "Testing installation from PyPi"
docker run -t -v "$(pwd)"/../../:/app nogcc bash -c \
"cd /app && pip install .;
python3 -c 'import CLUEstering' || exit 0"
- name: Test installation inside docker containers (without cmake)
working-directory: ${{github.workspace}}/docker/no_cmake
run: |
docker build -t nocmake .
echo "Testing installation from PyPi"
docker run -t -v "$(pwd)"/../../:/app nocmake bash -c \
"cd app && pip install .;
python3 -c 'import CLUEstering' || exit 0"