-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow for testing installation in different conditions
- Loading branch information
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
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" |