Skip to content

Commit 2bf57b5

Browse files
committed
test: upload pilot.tar as artifacts
1 parent 1cf1211 commit 2bf57b5

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Nightly
22

3-
on: push
4-
# on:
5-
# schedule:
6-
# # every night at midnight
7-
# - cron: '0 0 * * *'
8-
# workflow_dispatch:
3+
# on: push
4+
on:
5+
schedule:
6+
# every night at midnight
7+
- cron: '0 0 * * *'
8+
workflow_dispatch:
99

1010

1111
jobs:
12-
# uploading master and devel tarballs to web server, for use in subsequent tests
12+
# uploading master and devel tarballs as artifacts, for use in subsequent tests
1313
# the base tests that use these uploaded tarballs are the DIRAC "pilot wrapper" tests:
1414
# https://github.com/DIRACGrid/DIRAC/actions?query=workflow%3A%22pilot+wrapper%22
1515
# (triggered by https://github.com/DIRACGrid/DIRAC/blob/integration/.github/workflows/pilotWrapper.yml)
@@ -31,7 +31,6 @@ jobs:
3131

3232
- name: create artifacts
3333
run: |
34-
pwd
3534
mkdir tmp_dir
3635
cp Pilot/*.py tmp_dir/
3736
cp tests/pilot.json tmp_dir/
@@ -40,17 +39,12 @@ jobs:
4039
tar -cf pilot.tar *.py
4140
# make the checksums file
4241
sha512sum pilot.tar pilot.json *.py > checksums.sha512
43-
cd ..
44-
cp tmp_dir/checksums.sha512 .
45-
cp tmp_dir/pilot.tar .
46-
pwd
47-
ls -l
48-
cp tmp_dir/checksums.sha512 ../
49-
cp tmp_dir/pilot.tar ../
42+
# remove unneeded files
43+
rm *.py
5044
5145
- name: upload artifacts
5246
uses: actions/upload-artifact@v4
5347
with:
5448
name: Pilot_${{ matrix.branch }}
5549
path: tmp_dir
56-
retention-days: 2
50+
retention-days: 1

0 commit comments

Comments
 (0)