Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use run-lcg-view github action and switch to more recent LCG releases in CI #182

Merged
merged 6 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/scripts/compile_and_test.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .github/scripts/runPythonChecks.sh

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/key4hep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: key4hep

on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- uses: aidasoft/run-lcg-view@v3
with:
container: centos7
view-path: /cvmfs/sw.hsf.org/key4hep
run: |
mkdir build install
cd build
cmake -DENABLE_SIO=ON \
-DCMAKE_INSTALL_PREFIX=../install \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \
-G Ninja ..
ninja -k0
ctest --output-on-failure
ninja install
39 changes: 22 additions & 17 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,32 @@ on: [push, pull_request]

jobs:
compile:
runs-on: macos-10.15
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
LCG: ["LCG_98python3/x86_64-mac1015-clang110-opt","LCG_97apython3/x86_64-mac1015-clang110-opt"]
sio: [ON]
LCG: ["LCG_99/x86_64-mac1015-clang120-opt",
"dev4/x86_64-mac1015-clang120-opt"]
include:
- LCG: "LCG_98python3/x86_64-mac1015-clang110-opt"
sio: OFF
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
with:
cvmfs_repositories: 'sft.cern.ch,geant4.cern.ch'
- name: Install LCG dependencies
run: |
brew install ninja
brew install gfortran
brew install --cask xquartz
- name: Compile and test
run: |
source /Users/Shared/cvmfs/sft.cern.ch/lcg/views/${{ matrix.LCG }}/setup.sh
mkdir build install
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror" ..
ninja -k 0
ninja install
ctest --output-on-failure
cvmfs_repositories: 'sft.cern.ch,geant4.cern.ch,sft-nightlies.cern.ch'
- uses: aidasoft/run-lcg-view@v2
with:
release-platform: ${{ matrix.LCG }}
run: |
mkdir build install
cd build
cmake -DENABLE_SIO=${{ matrix.sio }} \
-DCMAKE_INSTALL_PREFIX=../install \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \
-G Ninja ..
ninja -k0
ctest --output-on-failure
ninja install
17 changes: 9 additions & 8 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
LCG: ["LCG_96b/x86_64-centos7-gcc9-opt"]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: Start container
run: |
docker run -it --privileged --name CI_container -v /home/runner/work/podio/podio:/Package -e VIEW=${{ matrix.LCG }} -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/centos7:latest /bin/bash
- name: Run Python Checks
run: |
docker exec CI_container /bin/bash -c "./Package/.github/scripts/runPythonChecks.sh"
- uses: aidasoft/run-lcg-view@v2
with:
release-platform: LCG_99/x86_64-centos7-gcc10-opt
run: |
echo "RUNNING PYLINT PY3K CHECK" && \
find . -name "*.py" -exec pylint --rcfile=.github/scripts/podio.pylint.py3k.rc --py3k --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" {} + && \
echo "" && \
echo "RUNNING FLAKE8 CHECK" && \
find . -name "*.py" -exec flake8 {} +
35 changes: 22 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
name: linux

on: [push, pull_request]

jobs:
test:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
LCG: ["LCG_96b/x86_64-centos7-gcc8-opt",
"LCG_97a/x86_64-centos7-gcc9-opt",
"LCG_98/x86_64-centos7-clang10-opt",
"LCG_98python3/x86_64-centos7-gcc9-opt",
"LCG_98python3/x86_64-centos7-gcc10-opt"]
sio: [ON]
LCG: ["LCG_99/x86_64-centos7-gcc8-opt",
"LCG_99/x86_64-centos7-clang10-opt",
"LCG_99/x86_64-centos8-gcc10-opt",
"dev3/x86_64-centos7-clang10-opt",
"dev4/x86_64-centos7-gcc10-opt",
"dev4/x86_64-centos7-clang10-opt"]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: Start container
run: |
docker run -it --privileged --name CI_container -v /home/runner/work/podio/podio:/Package -e VIEW=${{ matrix.LCG }} -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/centos7:latest /bin/bash
- name: Compile and test
run: |
docker exec CI_container /bin/bash -c "./Package/.github/scripts/compile_and_test.sh"
- uses: aidasoft/run-lcg-view@v2
with:
release-platform: ${{ matrix.LCG }}
run: |
mkdir build install
cd build
cmake -DENABLE_SIO=${{ matrix.sio }} \
-DCMAKE_INSTALL_PREFIX=../install \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \
-G Ninja ..
ninja -k0
ctest --output-on-failure
ninja install
19 changes: 0 additions & 19 deletions .github/workflows/test_with_sio.yml

This file was deleted.

25 changes: 18 additions & 7 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,24 @@ jobs:
strategy:
fail-fast: false
matrix:
LCG: ["LCG_98/x86_64-ubuntu1804-gcc7-opt", "LCG_98/x86_64-ubuntu1804-gcc8-opt"]
sio: [ON]
LCG: ["LCG_99/x86_64-ubuntu2004-gcc9-opt",
"dev3/x86_64-ubuntu2004-gcc9-opt",
"dev4/x86_64-ubuntu2004-gcc9-opt"]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: Start container
run: |
docker run -it --privileged --name CI_container -v /home/runner/work/podio/podio:/Package -e VIEW=${{ matrix.LCG }} -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/ubuntu18:latest /bin/bash
- name: Compile and test
run: |
docker exec CI_container /bin/bash -c "./Package/.github/scripts/compile_and_test.sh"
- uses: aidasoft/run-lcg-view@v2
with:
release-platform: ${{ matrix.LCG }}
run: |
mkdir build install
cd build
cmake -DENABLE_SIO=${{ matrix.sio }} \
-DCMAKE_INSTALL_PREFIX=../install \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \
-G Ninja ..
ninja -k0
ctest --output-on-failure
ninja install
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# podio

[![linux](https://github.com/AIDASoft/podio/actions/workflows/test.yml/badge.svg)](https://github.com/AIDASoft/podio/actions/workflows/test.yml)
[![mac](https://github.com/AIDASoft/podio/actions/workflows/mac.yml/badge.svg)](https://github.com/AIDASoft/podio/actions/workflows/mac.yml)
[![ubuntu](https://github.com/AIDASoft/podio/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/AIDASoft/podio/actions/workflows/ubuntu.yml)
[![coverity](https://scan.coverity.com/projects/22634/badge.svg)](https://scan.coverity.com/projects/aidasoft-podio)

## Documentation

- [Introduction](./doc/doc.md)
Expand Down