-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (39 loc) · 1.73 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: integration
on: [push, pull_request]
jobs:
integration:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- 2.7.18
- 3.6.15
- 3.9.17
dirac_version:
- v8.0.29
- v8.1.0a20
container: python:${{ matrix.python }}-slim
steps:
- uses: actions/checkout@v4
- name: Retrieve the secret and decode it to a file
env:
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
run: |
mkdir -p etc/grid-security
echo $HOSTCERT_BASE64 | base64 --decode > etc/grid-security/hostcert.pem
echo $HOSTKEY_BASE64 | base64 --decode > etc/grid-security/hostkey.pem
chmod 400 etc/grid-security/hostcert.pem
chmod 644 etc/grid-security/hostkey.pem
- name: tests
run: |
cp tests/CI/pilot_newSchema.json Pilot/pilot.json
sed -i "s/VAR_JENKINS_SITE/DIRAC.Jenkins.ch/g" Pilot/pilot.json
sed -i "s/VAR_JENKINS_CE/jenkins.cern.ch/g" Pilot/pilot.json
sed -i "s/VAR_JENKINS_QUEUE/jenkins-queue_not_important/g" Pilot/pilot.json
sed -i "s/VAR_DIRAC_VERSION/${{ matrix.dirac_version }}/g" Pilot/pilot.json
sed -i "s#VAR_CS#https://lbcertifdirac70.cern.ch:9135/Configuration/Server#g" Pilot/pilot.json
sed -i "s#VAR_USERDN#/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=alboyer/CN=819281/CN=Alexandre Franck Boyer#g" Pilot/pilot.json
sed -i "s#VAR_USERDN_GRIDPP#${DIRACUSERDN_GRIDPP}#g" Pilot/pilot.json
cd Pilot
cat pilot.json
python dirac-pilot.py -M 1 -S DIRAC-Certification -N jenkins.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --cert --certLocation=../etc/grid-security --debug