From 764cb96080020b7191314380b964ec90f249a148 Mon Sep 17 00:00:00 2001 From: Ivo Steinbrecher Date: Wed, 17 Jun 2026 17:23:23 +0200 Subject: [PATCH] Add remote tests --- .../cubitpy_test_suite_with_secrets.yml | 49 +++++++++++++++++-- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cubitpy_test_suite_with_secrets.yml b/.github/workflows/cubitpy_test_suite_with_secrets.yml index a4e63e4..c8843c1 100644 --- a/.github/workflows/cubitpy_test_suite_with_secrets.yml +++ b/.github/workflows/cubitpy_test_suite_with_secrets.yml @@ -45,7 +45,7 @@ jobs: cubit_download_url: ${{ env.CUBIT_DOWNLOAD_URL }} cubit_email: ${{ secrets.CUBIT_EMAIL }} cubit_password: ${{ secrets.CUBIT_PASSWORD }} - - name: Install CubitPy and run tests + - name: Install CubitPy run: | whoami pwd @@ -58,15 +58,54 @@ jobs: # Print information on the python environment python --version pip list - + - name: Run CubitPy tests in local mode + run: | # Create CubitPy config - cat > cubitpy_config_local.yml < $CONFIG_NAME <> ~/.ssh/authorized_keys + chmod 700 ~/.ssh + chmod 600 ~/.ssh/authorized_keys + sudo service ssh start + ssh-keyscan -H localhost >> ~/.ssh/known_hosts + - name: Verify SSH connection + run: ssh localhost 'echo SSH to local host successful' + - name: Run CubitPy tests in remote mode + run: | + # Create CubitPy config + SSH_USER="${USER:-$(whoami)}" + CONFIG_NAME=cubitpy_config_remote.yml + cat > $CONFIG_NAME <