diff --git a/.github/workflows/push-important-models.yml b/.github/workflows/push-important-models.yml index a6ea03277d6055..93a17ea7f6993c 100644 --- a/.github/workflows/push-important-models.yml +++ b/.github/workflows/push-important-models.yml @@ -53,11 +53,12 @@ jobs: test_modified_files: needs: get_modified_models name: Slow & FA2 tests + runs-on: ubuntu-latest runs-on: [single-gpu, nvidia-gpu, a10, ci] container: image: huggingface/transformers-all-latest-gpu options: --gpus all --privileged --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ - if: ${{ needs.get_modified_models.outputs.matrix != '[]' && needs.get_modified_models.outputs.matrix != '' }} + if: ${{ needs.get_modified_models.outputs.matrix != '[]' && needs.get_modified_models.outputs.matrix != '' && fromJson(needs.get_modified_models.outputs.matrix)[0] != null }} strategy: fail-fast: false matrix: @@ -133,4 +134,4 @@ jobs: authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }} slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }} slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - waitForSSH: true \ No newline at end of file + waitForSSH: true