-
Notifications
You must be signed in to change notification settings - Fork 23
76 lines (70 loc) · 2.39 KB
/
ci-release.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI-Release
on:
push:
branches:
- 'devel*'
schedule:
- cron: '45 6 * * *'
jobs:
examples:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y openmpi-bin
python -m venv testenv
. testenv/bin/activate
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
- name: run examples
timeout-minutes: 10
run: |
export RADICAL_LOG_LVL=DEBUG_9
export RADICAL_PROFILE=True
export RADICAL_DEBUG=TRUE
export RADICAL_DEBUG_HELPER=TRUE
export RADICAL_REPORT=TRUE
export RADICAL_UTILS_ZMQ_LOG_LVL=INFO
export RADICAL_UTILS_HEARTBEAT_LOG_LVL=INFO
. testenv/bin/activate
export RP_ROOT=$(pwd)
export BASE=/home/runner/radical.pilot.sandbox/
mkdir -p $BASE/client_sessions
cd $BASE/client_sessions
radical-stack
$RP_ROOT/examples/00_getting_started.py
$RP_ROOT/examples/09_mpi_tasks.py
$RP_ROOT/examples/01_task_details.py
$RP_ROOT/examples/02_failing_tasks.py
$RP_ROOT/examples/03_multiple_pilots.py
$RP_ROOT/examples/04_scheduler_selection.py
$RP_ROOT/examples/05_task_input_data.py
$RP_ROOT/examples/06_task_output_data.py
$RP_ROOT/examples/07_shared_task_data.py
$RP_ROOT/examples/08_task_environment.py
$RP_ROOT/examples/10_pre_and_post_exec.py
$RP_ROOT/examples/11_task_input_data_tar.py
$RP_ROOT/examples/11_task_input_folder.py
- name: prepare example_artifacts
if: always()
run: |
tar zcf /home/runner/example_artifacts.tgz /home/runner/radical.pilot.sandbox/
- name: upload example_artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: example_artifacts_${{ matrix.python-version }}
path: /home/runner/example_artifacts.tgz
overwrite: true