-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (51 loc) · 1.25 KB
/
softwarecheck.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
name: Software_check
on:
push:
pull_request:
types: [opened]
jobs:
check_compile-job:
runs-on: ubuntu-latest
container:
image: cmscloud/al9-cms:latest
options: --user root
steps:
- name: Checking_out_code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checking_python_3.9
run: |
python3 -V
ls
pwd
python3 -m py_compile src/cmsstyle/cmsstyle.py
ls -lh src/cmsstyle/__pycache__/
- name: Checking_Cpp_compilation
run: |
cd src
echo '{gROOT->LoadMacro("cmsstyle.C++");}' > hola.C
dnf install -y root
echo 'ROOT VERSION='`root-config --version`
root -q hola.C
ls -lh cmsstyle_C.so
#
py2-job:
runs-on: ubuntu-latest
container:
image: cmscloud/cc7-cms:latest
options: --user root
steps:
- name: Checking_python_2.7
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
run: |
python -V
ls
git clone --depth 1 https://github.com/oglez/cmsstyle.git
cd cmsstyle
pwd
python -m py_compile src/cmsstyle/cmsstyle.py
ls -lh src/cmsstyle/cmsstyle.pyc
#