Skip to content

Commit

Permalink
run example ci tests separately
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Sep 19, 2024
1 parent 3e474be commit da740d7
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 55 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

name: CI

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: |
python -m venv testenv
. testenv/bin/activate
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
- name: run examples
timeout-minutes: 15
run: |
sudo apt update
sudo apt install -y openmpi-bin
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
mkdir example_artifacts/
cd example_artifacts/
../examples/00_getting_started.py
../examples/09_mpi_tasks.py
../examples/01_task_details.py
../examples/02_failing_tasks.py
../examples/03_multiple_pilots.py
../examples/04_scheduler_selection.py
../examples/05_task_input_data.py
../examples/06_task_output_data.py
../examples/07_shared_task_data.py
../examples/08_task_environment.py
../examples/10_pre_and_post_exec.py
../examples/11_task_input_data_tar.py
../examples/11_task_input_folder.py
- name: upload example_artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: example_artifacts
path: example_artifacts

55 changes: 0 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,58 +129,3 @@ jobs:
name: artifacts
path: artifacts

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: |
python -m venv testenv
. testenv/bin/activate
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
- name: run examples
timeout-minutes: 15
run: |
sudo apt update
sudo apt install -y openmpi-bin
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
mkdir example_artifacts/
cd example_artifacts/
../examples/00_getting_started.py
../examples/09_mpi_tasks.py
../examples/01_task_details.py
../examples/02_failing_tasks.py
../examples/03_multiple_pilots.py
../examples/04_scheduler_selection.py
../examples/05_task_input_data.py
../examples/06_task_output_data.py
../examples/07_shared_task_data.py
../examples/08_task_environment.py
../examples/10_pre_and_post_exec.py
../examples/11_task_input_data_tar.py
../examples/11_task_input_folder.py
- name: upload example_artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: example_artifacts
path: example_artifacts

0 comments on commit da740d7

Please sign in to comment.