Skip to content

Commit

Permalink
ci: Update actions plugin versions (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
toicca authored Dec 17, 2024
1 parent a85f574 commit 5a4401e
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 32 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/BTA_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Merge PR locally
if: github.event_name == 'pull_request_target'
Expand All @@ -56,10 +56,9 @@ jobs:
cvmfs_repositories: 'grid.cern.ch'

- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
activate-environment: btv_coffea
Expand Down Expand Up @@ -97,7 +96,7 @@ jobs:
chmod 400 $HOME/.globus/userkey.pem
openssl rand -out $HOME/.rnd -hex 256
printf "${{secrets.GRID_PASSWORD}}" | voms-proxy-init --voms cms --debug --pwstdin -certdir $X509_CERT_DIR -vomses $X509_VOMSES
chmod 755 /usr/share/miniconda3/envs/btv_coffea/etc/grid-security/certificates
chmod 755 /usr/share/miniconda/envs/btv_coffea/etc/grid-security/certificates
- name: Install Repo
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/QCD_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Merge PR locally
if: github.event_name == 'pull_request_target'
Expand All @@ -57,10 +57,9 @@ jobs:
cvmfs_repositories: 'grid.cern.ch'

- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
activate-environment: btv_coffea
Expand Down Expand Up @@ -98,7 +97,7 @@ jobs:
chmod 400 $HOME/.globus/userkey.pem
openssl rand -out $HOME/.rnd -hex 256
printf "${{secrets.GRID_PASSWORD}}" | voms-proxy-init --voms cms --debug --pwstdin -certdir $X509_CERT_DIR -vomses $X509_VOMSES
chmod 755 /usr/share/miniconda3/envs/btv_coffea/etc/grid-security/certificates
chmod 755 /usr/share/miniconda/envs/btv_coffea/etc/grid-security/certificates
- name: Install Repo
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ctag_DY_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Merge PR locally
if: github.event_name == 'pull_request_target'
Expand All @@ -54,10 +54,9 @@ jobs:
with:
cvmfs_repositories: 'grid.cern.ch'
- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
activate-environment: btv_coffea
Expand Down Expand Up @@ -95,7 +94,7 @@ jobs:
chmod 400 $HOME/.globus/userkey.pem
openssl rand -out $HOME/.rnd -hex 256
printf "${{secrets.GRID_PASSWORD}}" | voms-proxy-init --voms cms --debug --pwstdin -certdir $X509_CERT_DIR -vomses $X509_VOMSES
chmod 755 /usr/share/miniconda3/envs/btv_coffea/etc/grid-security/certificates
chmod 755 /usr/share/miniconda/envs/btv_coffea/etc/grid-security/certificates
- name: Install Repo
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/ctag_Wc_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Merge PR locally
if: github.event_name == 'pull_request_target'
Expand All @@ -57,10 +57,9 @@ jobs:
cvmfs_repositories: 'grid.cern.ch'

- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
activate-environment: btv_coffea
Expand Down Expand Up @@ -98,7 +97,7 @@ jobs:
chmod 400 $HOME/.globus/userkey.pem
openssl rand -out $HOME/.rnd -hex 256
printf "${{secrets.GRID_PASSWORD}}" | voms-proxy-init --voms cms --debug --pwstdin -certdir $X509_CERT_DIR -vomses $X509_VOMSES
chmod 755 /usr/share/miniconda3/envs/btv_coffea/etc/grid-security/certificates
chmod 755 /usr/share/miniconda/envs/btv_coffea/etc/grid-security/certificates
- name: Install Repo
run: |
Expand Down Expand Up @@ -135,7 +134,6 @@ jobs:
fi
python runner.py --workflow ectag_Wc_sf --json metadata/test_bta_run3.json --executor iterative --overwrite $opts
- name: ctag muon W+c fixed WP workflows with correctionlib
run: |
string=$(git log -1 --pretty=format:'%s')
Expand Down Expand Up @@ -164,4 +162,4 @@ jobs:
elif [[ $string == *"ci:weight_only"* ]]; then
opts=$(echo "$opts" | sed 's/--isSyst all/--isSyst weight_only/g')
fi
python runner.py --workflow ectag_Wc_WP_sf --json metadata/test_bta_run3.json --executor iterative --overwrite $opts
python runner.py --workflow ectag_Wc_WP_sf --json metadata/test_bta_run3.json --executor iterative --overwrite $opts
7 changes: 3 additions & 4 deletions .github/workflows/ctag_ttbar_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Merge PR locally
if: github.event_name == 'pull_request_target'
Expand All @@ -55,10 +55,9 @@ jobs:
cvmfs_repositories: 'grid.cern.ch'

- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
activate-environment: btv_coffea
Expand Down Expand Up @@ -96,7 +95,7 @@ jobs:
chmod 400 $HOME/.globus/userkey.pem
openssl rand -out $HOME/.rnd -hex 256
printf "${{secrets.GRID_PASSWORD}}" | voms-proxy-init --voms cms --debug --pwstdin -certdir $X509_CERT_DIR -vomses $X509_VOMSES
chmod 755 /usr/share/miniconda3/envs/btv_coffea/etc/grid-security/certificates
chmod 755 /usr/share/miniconda/envs/btv_coffea/etc/grid-security/certificates
- name: Install Repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ttbar_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Merge PR locally
if: github.event_name == 'pull_request_target'
Expand All @@ -55,10 +55,9 @@ jobs:
cvmfs_repositories: 'grid.cern.ch'

- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
activate-environment: btv_coffea
Expand Down Expand Up @@ -96,7 +95,7 @@ jobs:
chmod 400 $HOME/.globus/userkey.pem
openssl rand -out $HOME/.rnd -hex 256
printf "${{secrets.GRID_PASSWORD}}" | voms-proxy-init --voms cms --debug --pwstdin -certdir $X509_CERT_DIR -vomses $X509_VOMSES
chmod 755 /usr/share/miniconda3/envs/btv_coffea/etc/grid-security/certificates
chmod 755 /usr/share/miniconda/envs/btv_coffea/etc/grid-security/certificates
- name: Install Repo
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Merge PR locally
if: github.event_name == 'pull_request_target'
Expand All @@ -55,10 +55,9 @@ jobs:
cvmfs_repositories: 'grid.cern.ch'

- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
activate-environment: btv_coffea
Expand Down Expand Up @@ -96,7 +95,7 @@ jobs:
chmod 400 $HOME/.globus/userkey.pem
openssl rand -out $HOME/.rnd -hex 256
printf "${{secrets.GRID_PASSWORD}}" | voms-proxy-init --voms cms --debug --pwstdin -certdir $X509_CERT_DIR -vomses $X509_VOMSES
chmod 755 /usr/share/miniconda3/envs/btv_coffea/etc/grid-security/certificates
chmod 755 /usr/share/miniconda/envs/btv_coffea/etc/grid-security/certificates
- name: Install Repo
run: |
Expand Down

0 comments on commit 5a4401e

Please sign in to comment.