@@ -18,49 +18,54 @@ jobs:
1818 pilot_branch :
1919 - master
2020 - devel
21+ exclude :
22+ - pilot_branch : devel
23+ python : 2.7.5
24+ - pilot_branch : devel
25+ python : 2.7.13
2126
2227 steps :
23- - uses : actions/checkout@v4
24- - uses : cvmfs-contrib/github-action-cvmfs@v5
28+ - uses : actions/checkout@v4
29+ - uses : cvmfs-contrib/github-action-cvmfs@v5
2530
26- - name : Test CernVM-FS
27- run : ls /cvmfs/dirac.egi.eu
31+ - name : Test CernVM-FS
32+ run : ls /cvmfs/dirac.egi.eu
2833
29- - name : Fail-fast for outdated pipelines
30- run : .github/workflows/fail-fast.sh
34+ - name : Fail-fast for outdated pipelines
35+ run : .github/workflows/fail-fast.sh
3136
32- - name : prepare environment
33- run : |
34- conda config --set add_pip_as_python_dependency false
35- conda create -c conda-forge -c free -n python_${{ matrix.python }} python=${{ matrix.python }}
36- - name : run pilot wrapper test
37- run : |
38- export INVALID_UTF8_VAR=$'\xff'
39- cp tests/Integration/WorkloadManagementSystem/Test_GenerateAndExecutePilotWrapper.py .
40- eval "$(conda shell.bash hook)" && conda activate python_${{ matrix.python }}
41- # use github APIs to get the artifacts URLS from https://github.com/DIRACGrid/Pilot/, for those named Pilot_${{ matrix.pilot_branch }}
42- url=$(curl -s https://api.github.com/repos/DIRACGrid/Pilot/actions/artifacts | jq -r '.artifacts[] | select(.name == "Pilot_${{ matrix.pilot_branch }}") | .archive_download_url')
43- echo $url
37+ - name : prepare environment
38+ run : |
39+ conda config --set add_pip_as_python_dependency false
40+ conda create -c conda-forge -c free -n python_${{ matrix.python }} python=${{ matrix.python }}
41+ - name : run pilot wrapper test
42+ run : |
43+ export INVALID_UTF8_VAR=$'\xff'
44+ cp tests/Integration/WorkloadManagementSystem/Test_GenerateAndExecutePilotWrapper.py .
45+ eval "$(conda shell.bash hook)" && conda activate python_${{ matrix.python }}
46+ # use github APIs to get the artifacts URLS from https://github.com/DIRACGrid/Pilot/, for those named Pilot_${{ matrix.pilot_branch }}
47+ url=$(curl -s https://api.github.com/repos/DIRACGrid/Pilot/actions/artifacts | jq -r '.artifacts[] | select(.name == "Pilot_${{ matrix.pilot_branch }}") | .archive_download_url')
48+ echo $url
4449
45- # download and unzip the url above
46- curl -L \
47- -H "Accept: application/vnd.github+json" \
48- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
49- -H "X-GitHub-Api-Version: 2022-11-28" \
50- $url --output Pilot_${{ matrix.pilot_branch }}.zip
50+ # download and unzip the url above
51+ curl -L \
52+ -H "Accept: application/vnd.github+json" \
53+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
54+ -H "X-GitHub-Api-Version: 2022-11-28" \
55+ $url --output Pilot_${{ matrix.pilot_branch }}.zip
5156
52- file_type=$(file --mime-type -b Pilot_${{ matrix.pilot_branch }}.zip)
57+ file_type=$(file --mime-type -b Pilot_${{ matrix.pilot_branch }}.zip)
5358
54- if [ "$file_type" != "application/zip" ]; then
55- echo "The downloaded file is not a ZIP file. File type: $file_type"
56- exit 1
57- fi
59+ if [ "$file_type" != "application/zip" ]; then
60+ echo "The downloaded file is not a ZIP file. File type: $file_type"
61+ exit 1
62+ fi
5863
5964
60- mkdir -p ${{ matrix.pilot_branch }}/pilot
61- cp Pilot_${{ matrix.pilot_branch }}.zip ${{ matrix.pilot_branch }}/pilot
62- cd ${{ matrix.pilot_branch }}/pilot
63- unzip Pilot_${{ matrix.pilot_branch }}.zip
64- cd ../..
65+ mkdir -p ${{ matrix.pilot_branch }}/pilot
66+ cp Pilot_${{ matrix.pilot_branch }}.zip ${{ matrix.pilot_branch }}/pilot
67+ cd ${{ matrix.pilot_branch }}/pilot
68+ unzip Pilot_${{ matrix.pilot_branch }}.zip
69+ cd ../..
6570
66- python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py file://${{ github.workspace }}/${{ matrix.pilot_branch }}
71+ python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py file://${{ github.workspace }}/${{ matrix.pilot_branch }}
0 commit comments