Merge pull request #3283 from radical-cybertools/fix/artifact_upload_… #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |