Test installation of the library in different conditions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 /bin/bash -c \ | |
"pip install CLUEstering; python3 -c 'import CLUEstering' || exit 1" | |
echo "Testing installation from git repository" | |
docker run -t serial /bin/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 /bin/bash -c \ | |
"pip install CLUEstering; python3 -c 'import CLUEstering' || exit 1" | |
echo "Testing installation from git repository" | |
docker run -t noboost /bin/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 /bin/bash -c \ | |
"pip install CLUEstering; python3 -c 'import CLUEstering' || exit 1" | |
echo "Testing installation from git repository" | |
docker run -t tbb /bin/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 /bin/bash -c \ | |
"pip install CLUEstering; python3 -c 'import CLUEstering' && exit 1" | |
echo "Testing installation from git repository" | |
docker run -t nogcc /bin/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 /bin/bash -c \ | |
"pip install CLUEstering; python3 -c 'import CLUEstering' && exit 1" | |
echo "Testing installation from git repository" | |
docker run -t nocmake /bin/bash -c \ | |
"git clone https://github.com/cms-patatrack/CLUEstering; | |
cd CLUEstering; | |
pip install . ; | |
python3 -c 'import CLUEstering' && exit 1" |