-
Notifications
You must be signed in to change notification settings - Fork 10
106 lines (87 loc) · 3.81 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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:
- 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 serial bash -c \
"pip install CLUEstering; python3 -c 'import CLUEstering' || exit 1"
echo "Testing installation from git repository"
docker run -t serial bash -c \
"git clone https://github.com/cms-patatrack/CLUEstering;
cd CLUEstering;
pip install . ;
python3 -c 'import CLUEstering' || exit 1"
- 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 noboost bash -c \
"pip install CLUEstering; python3 -c 'import CLUEstering' || exit 1"
echo "Testing installation from git repository"
docker run -t noboost bash -c \
"git clone https://github.com/cms-patatrack/CLUEstering;
cd CLUEstering;
pip install . ;
python3 -c 'import CLUEstering' || exit 1"
- 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 tbb bash -c \
"pip install CLUEstering; python3 -c 'import CLUEstering' || exit 1"
echo "Testing installation from git repository"
docker run -t tbb bash -c \
"git clone https://github.com/cms-patatrack/CLUEstering;
cd CLUEstering;
pip install . ;
python3 -c 'import CLUEstering' || exit 1"
- 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 nogcc bash -c \
"pip install CLUEstering; python3 -c 'import CLUEstering' && exit 1"
echo "Testing installation from git repository"
docker run -t nogcc bash -c \
"git clone https://github.com/cms-patatrack/CLUEstering;
cd CLUEstering;
pip install . ;
python3 -c 'import CLUEstering' && exit 1"
- 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 nocmake bash -c \
"pip install CLUEstering; python3 -c 'import CLUEstering' && exit 1"
echo "Testing installation from git repository"
docker run -t nocmake bash -c \
"git clone https://github.com/cms-patatrack/CLUEstering;
cd CLUEstering;
pip install . ;
python3 -c 'import CLUEstering' && exit 1"