From 2bf57b56ed307c6638e50c695a3324ae233bbd4c Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Thu, 11 Jul 2024 12:14:42 +0200 Subject: [PATCH] test: upload pilot.tar as artifacts --- .github/workflows/nightly.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 502b899e..17b4b7ce 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,15 +1,15 @@ name: Nightly -on: push -# on: -# schedule: -# # every night at midnight -# - cron: '0 0 * * *' -# workflow_dispatch: +# on: push +on: + schedule: + # every night at midnight + - cron: '0 0 * * *' + workflow_dispatch: jobs: - # uploading master and devel tarballs to web server, for use in subsequent tests + # uploading master and devel tarballs as artifacts, for use in subsequent tests # the base tests that use these uploaded tarballs are the DIRAC "pilot wrapper" tests: # https://github.com/DIRACGrid/DIRAC/actions?query=workflow%3A%22pilot+wrapper%22 # (triggered by https://github.com/DIRACGrid/DIRAC/blob/integration/.github/workflows/pilotWrapper.yml) @@ -31,7 +31,6 @@ jobs: - name: create artifacts run: | - pwd mkdir tmp_dir cp Pilot/*.py tmp_dir/ cp tests/pilot.json tmp_dir/ @@ -40,17 +39,12 @@ jobs: tar -cf pilot.tar *.py # make the checksums file sha512sum pilot.tar pilot.json *.py > checksums.sha512 - cd .. - cp tmp_dir/checksums.sha512 . - cp tmp_dir/pilot.tar . - pwd - ls -l - cp tmp_dir/checksums.sha512 ../ - cp tmp_dir/pilot.tar ../ + # remove unneeded files + rm *.py - name: upload artifacts uses: actions/upload-artifact@v4 with: name: Pilot_${{ matrix.branch }} path: tmp_dir - retention-days: 2 + retention-days: 1