From 2ca7a47469e7ad008245d1cac774511630c9ca27 Mon Sep 17 00:00:00 2001 From: Julio Faracco Date: Fri, 28 Jun 2024 14:46:04 -0300 Subject: [PATCH] Continue executing CI when test connection fails Signed-off-by: Julio Faracco --- .github/workflows/ci.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 78e47cc..ada6741 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -91,11 +91,12 @@ jobs: id: test_connection run: | ssh -T ${{ secrets.CLUSTER_USER }}@${{ secrets.CLUSTER_ADDRESS }} -p 8686 > /dev/null + continue-on-error: true - name: Pull latest docker image - if: success() || steps.test_connection.conclusion == 'success' + if: success() && steps.test_connection.outcome == 'success' run: | ssh ${{ secrets.CLUSTER_USER }}@${{ secrets.CLUSTER_ADDRESS }} -p 8686 "ssh ${{ secrets.CLUSTER_GPU_ID }} \"docker pull jcfaracco/dasf:gpu\"" - name: Run test cases remotely - if: success() || steps.test_connection.conclusion == 'success' + if: success() && steps.test_connection.outcome == 'success' run: | ssh ${{ secrets.CLUSTER_USER }}@${{ secrets.CLUSTER_ADDRESS }} -p 8686 "ssh ${{ secrets.CLUSTER_GPU_ID }} \"docker run --rm --gpus all jcfaracco/dasf:gpu sh -c 'pip3 install pytest parameterized pytest-cov pip --upgrade && rm -rf dasf-core && git clone https://github.com/discovery-unicamp/dasf-core.git && cd dasf-core/ && pip3 uninstall dasf -y && pip3 install . && pytest --cov dasf/ tests/ && cd -'\""