@@ -11,56 +11,54 @@ jobs:
1111 fail-fast : False
1212 matrix :
1313 python :
14- - 2.7.5
15- - 2.7.13
1614 - 3.6.8
1715 - 3.11.4
1816 pilot_branch :
1917 - master
2018 - devel
2119
2220 steps :
23- - uses : actions/checkout@v4
24- - uses : cvmfs-contrib/github-action-cvmfs@v5
21+ - uses : actions/checkout@v4
22+ - uses : cvmfs-contrib/github-action-cvmfs@v5
2523
26- - name : Test CernVM-FS
27- run : ls /cvmfs/dirac.egi.eu
24+ - name : Test CernVM-FS
25+ run : ls /cvmfs/dirac.egi.eu
2826
29- - name : Fail-fast for outdated pipelines
30- run : .github/workflows/fail-fast.sh
27+ - name : Fail-fast for outdated pipelines
28+ run : .github/workflows/fail-fast.sh
3129
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
30+ - name : prepare environment
31+ run : |
32+ conda config --set add_pip_as_python_dependency false
33+ conda create -c conda-forge -c free -n python_${{ matrix.python }} python=${{ matrix.python }}
34+ - name : run pilot wrapper test
35+ run : |
36+ export INVALID_UTF8_VAR=$'\xff'
37+ cp tests/Integration/WorkloadManagementSystem/Test_GenerateAndExecutePilotWrapper.py .
38+ eval "$(conda shell.bash hook)" && conda activate python_${{ matrix.python }}
39+ # use github APIs to get the artifacts URLS from https://github.com/DIRACGrid/Pilot/, for those named Pilot_${{ matrix.pilot_branch }}
40+ url=$(curl -s https://api.github.com/repos/DIRACGrid/Pilot/actions/artifacts | jq -r '.artifacts[] | select(.name == "Pilot_${{ matrix.pilot_branch }}") | .archive_download_url')
41+ echo $url
4442
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
43+ # download and unzip the url above
44+ curl -L \
45+ -H "Accept: application/vnd.github+json" \
46+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
47+ -H "X-GitHub-Api-Version: 2022-11-28" \
48+ $url --output Pilot_${{ matrix.pilot_branch }}.zip
5149
52- file_type=$(file --mime-type -b Pilot_${{ matrix.pilot_branch }}.zip)
50+ file_type=$(file --mime-type -b Pilot_${{ matrix.pilot_branch }}.zip)
5351
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
52+ if [ "$file_type" != "application/zip" ]; then
53+ echo "The downloaded file is not a ZIP file. File type: $file_type"
54+ exit 1
55+ fi
5856
5957
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 ../..
58+ mkdir -p ${{ matrix.pilot_branch }}/pilot
59+ cp Pilot_${{ matrix.pilot_branch }}.zip ${{ matrix.pilot_branch }}/pilot
60+ cd ${{ matrix.pilot_branch }}/pilot
61+ unzip Pilot_${{ matrix.pilot_branch }}.zip
62+ cd ../..
6563
66- python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py file://${{ github.workspace }}/${{ matrix.pilot_branch }}
64+ python Test_GenerateAndExecutePilotWrapper.py file://${{ github.workspace }}/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py file://${{ github.workspace }}/${{ matrix.pilot_branch }}
0 commit comments