Skip to content

Commit 6946063

Browse files
authored
Merge pull request #8349 from fstagni/80_fix_py2_pw
[8.0] test: remove python2 tests (soon not fully working at all)
2 parents 7e87c84 + bb6f927 commit 6946063

File tree

1 file changed

+35
-37
lines changed

1 file changed

+35
-37
lines changed

.github/workflows/pilotWrapper.yml

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)