Skip to content

Commit

Permalink
Modifying (to correct and improve) the code for checking compilation …
Browse files Browse the repository at this point in the history
…in a GitHub Action Workflow
  • Loading branch information
oglez committed Dec 4, 2024
1 parent 29b2297 commit 7dcd864
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/softwarecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,49 @@ on:
pull_request:
types: [opened]
jobs:
py3-job:
check_compile-job:
runs-on: ubuntu-latest
container: cmscloud/al9-cms:latest
container:
image: cmscloud/al9-cms:latest
options: --user root
steps:
- name: Checking_python_3.9
- name: Checking_out_code
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
- name: Checking_python_3.9
run: |
python3 -V
ls
pwd
python3 -m py_compile src/cmsstyle/cmsstyle.py
python3 -m py_compil src/cmsstyle/cmsstyle.py
- run: |
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 cmsstyle_C.sod
ls -lh cmsstyle_C.so
#
py2-job:
runs-on: ubuntu-latest
container: cmscloud/cc7-cms: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: |
# 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
#

0 comments on commit 7dcd864

Please sign in to comment.