Skip to content

Test installation of the library in different conditions #2

Test installation of the library in different conditions

Test installation of the library in different conditions #2

Workflow file for this run

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: Test installation inside docker containers (serial)
working-directory: ${{github.workspace}}/docker/serial
run: |
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"