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 -'\""