From 33ddc88056f772aa71b3269b9efbecc566618774 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Mon, 29 Apr 2024 15:49:11 +0200 Subject: [PATCH] hello 1 hello 2 hello 3 hello 4 --- .../workflows/self-new-model-pr-caller.yml | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/self-new-model-pr-caller.yml b/.github/workflows/self-new-model-pr-caller.yml index b6fdb16dd7e00d..dbfe2b366e65cf 100644 --- a/.github/workflows/self-new-model-pr-caller.yml +++ b/.github/workflows/self-new-model-pr-caller.yml @@ -21,9 +21,9 @@ jobs: find_models_to_run: runs-on: ubuntu-22.04 name: Find models to run slow tests - if: contains(github.event.pull_request.labels.*.name, 'single-model-run-slow') + if: ${{ contains(github.event.pull_request.labels.*.name, 'run-slow') }} outputs: - new_model: ${{ steps.check_new_model.outputs.new_model }} + models: ${{ steps.models_to_run.outputs.models }} steps: - uses: actions/checkout@v4 with: @@ -47,21 +47,21 @@ jobs: echo "models=['models/bert', 'models/gpt2']" >> $GITHUB_ENV - name: Check values + id: models_to_run run: | echo "${{ env.new_model }}" echo "${{ env.models }}" -# echo "new_model=$(python utils/check_if_new_model_added.py | tail -n 1)" >> $GITHUB_OUTPUT + echo "models=${{ env.models }}" >> $GITHUB_OUTPUT + + dummy: + runs-on: ubuntu-22.04 + name: Check specified models to test + needs: find_models_to_run + steps: + - name: Check if there are specified models + run: | + echo "${{ needs.find_models_to_run.outputs.models }}" -# # TODO: we want to get the combined value -# dummy: -# runs-on: ubuntu-22.04 -# name: Check specified models to test -# # TODO: one of them could be -# needs: check_specified_models -# steps: -# - name: Check if there are specified models -# run: | -# echo "${{ needs.check_specified_models.outputs.models }}" # # run_models_gpu: # name: Run all tests for the new model