Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression Test git actions workflow #1912

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/regression_correlations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Regression Test Correlations

on:
workflow_call:
secrets:
SSH_PRIVATE_KEY:
required: true
SSH_USER:
required: true
SSH_HOST:
required: true
SSH_WORK_DIR:
required: true

jobs:
test:
name: Regression Correlations
runs-on: ubuntu-latest
steps:
- name: Install SSH Keys
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H -t rsa ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts

- name: Cleanup SSH
run: |
rm -rf ~/.ssh

#- uses: actions/upload-artifact@v3
# if: always()
# with:
# name: logs
# path: output/*/*/log/
15 changes: 0 additions & 15 deletions .github/workflows/regression_test_lite.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Run Regression Lite Test


on:
#pull_request:
# types: [ready_for_review]
workflow_call:
secrets:
SSH_PRIVATE_KEY:
Expand Down Expand Up @@ -37,12 +34,6 @@ jobs:
echo DOCKER_TAG=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]'):$TAG >> $GITHUB_ENV
cat $GITHUB_ENV

#- name: Checkout Code
# uses: actions/checkout@v2
#- name: Clone slurm_testing
# run: |
# git clone https://github.com/cmi-dair/slurm_testing

- name: Install SSH Keys
run: |
mkdir -p ~/.ssh/
Expand All @@ -68,12 +59,6 @@ jobs:
fi
bash slurm_testing/regression_run_scripts/regtest_lite.sh --home_dir ${{ secrets.SSH_WORK_DIR }} --image ${{ env.DOCKER_TAG }}

#- name: Correlating
# run: |
# echo "Correlating lite regression runs"
# echo "(ノ◕ヮ◕)ノ*:・゚✧"
# python3 reg-suite/main.py correlate --pipeline1 $GITHUB_WORKSPACE/output/default/HNU_1 --pipeline2 $GITHUB_WORKSPACE/lite/default/HNU_1--workspace $GITHUB_WORKSPACE

- name: Cleanup SSH
run: |
rm -rf ~/.ssh
Expand Down