File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
tests/Integration/WorkloadManagementSystem Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,20 @@ jobs:
15
15
- 2.7.13
16
16
- 3.6.8
17
17
- 3.11.4
18
+ pilot_branch :
19
+ - master
20
+ - devel
18
21
19
22
steps :
20
- - uses : actions/checkout@v3
23
+ - uses : actions/checkout@v4
24
+ - uses : cvmfs-contrib/github-action-cvmfs@v3
25
+
26
+ - name : Test CernVM-FS
27
+ run : ls /cvmfs/dirac.egi.eu
28
+
21
29
- name : Fail-fast for outdated pipelines
22
30
run : .github/workflows/fail-fast.sh
31
+
23
32
- name : prepare environment
24
33
run : |
25
34
conda config --set add_pip_as_python_dependency false
28
37
run : |
29
38
cp tests/Integration/WorkloadManagementSystem/Test_GenerateAndExecutePilotWrapper.py .
30
39
eval "$(conda shell.bash hook)" && conda activate python_${{ matrix.python }}
31
- python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py
40
+ python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py ${{ matrix.pilot_branch }}
Original file line number Diff line number Diff line change 17
17
# python Test_GenerateAndExecutePilotWrapper.py url://to_PilotWrapper.py
18
18
19
19
20
- from __future__ import print_function
21
- from __future__ import absolute_import
22
- from __future__ import division
20
+ from __future__ import absolute_import , division , print_function
23
21
24
- import sys
25
22
import os
23
+ import sys
26
24
import time
27
25
28
26
# 1) gets the (DIRAC-free) PilotWrapper.py
41
39
rf = url_library_urlopen (sys .argv [1 ], context = context )
42
40
else :
43
41
rf = url_library_urlopen (sys .argv [1 ])
42
+ pilotBranch = sys .argv [2 ]
44
43
45
44
with open ("PilotWrapper.py" , "wb" ) as pj :
46
45
pj .write (rf .read ())
53
52
54
53
res = pilotWrapperScript (
55
54
pilotOptions = "--setup=CI -N ce.dirac.org -Q DIRACQUEUE -n DIRAC.CI.ORG --pythonVersion=3 --debug" ,
56
- location = "diracproject.web.cern.ch/diracproject/tars/Pilot/DIRAC/master /,wrong.cern.ch" ,
55
+ location = "diracproject.web.cern.ch/diracproject/tars/Pilot/DIRAC/" + pilotBranch + " /,wrong.cern.ch" ,
57
56
)
58
57
59
58
with open ("pilot-wrapper.sh" , "wb" ) as pj :
You can’t perform that action at this time.
0 commit comments