@@ -40,32 +40,32 @@ jobs:
4040 set -eux
4141 PYTHONPATH="${PWD}" python .ci/scripts/gather_test_models.py --event "${EFFECTIVE_EVENT}"
4242
43- # test-models-linux:
44- # name: test-models-linux
45- # uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
46- # permissions:
47- # id-token: write
48- # contents: read
49- # needs: gather-models
50- # strategy:
51- # matrix: ${{ fromJSON(needs.gather-models.outputs.models) }}
52- # fail-fast: false
53- # with:
54- # runner: ${{ matrix.runner }}
55- # docker-image: ci-image:executorch-ubuntu-22.04-clang12
56- # submodules: 'recursive'
57- # ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
58- # timeout: ${{ matrix.timeout }}
59- # script: |
60- # # The generic Linux job chooses to use base env, not the one setup by the image
61- # CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
62- # conda activate "${CONDA_ENV}"
43+ test-models-linux :
44+ name : test-models-linux
45+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
46+ permissions :
47+ id-token : write
48+ contents : read
49+ needs : gather-models
50+ strategy :
51+ matrix : ${{ fromJSON(needs.gather-models.outputs.models) }}
52+ fail-fast : false
53+ with :
54+ runner : ${{ matrix.runner }}
55+ docker-image : ci-image:executorch-ubuntu-22.04-clang12
56+ submodules : ' recursive'
57+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
58+ timeout : ${{ matrix.timeout }}
59+ script : |
60+ # The generic Linux job chooses to use base env, not the one setup by the image
61+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
62+ conda activate "${CONDA_ENV}"
6363
64- # MODEL_NAME=${{ matrix.model }}
65- # BUILD_TOOL=${{ matrix.build-tool }}
66- # BACKEND=${{ matrix.backend }}
67- # DEMO_BACKEND_DELEGATION=${{ matrix.demo_backend_delegation }}
64+ MODEL_NAME=${{ matrix.model }}
65+ BUILD_TOOL=${{ matrix.build-tool }}
66+ BACKEND=${{ matrix.backend }}
67+ DEMO_BACKEND_DELEGATION=${{ matrix.demo_backend_delegation }}
6868
69- # PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "${BUILD_TOOL}"
70- # # Build and test ExecuTorch
71- # PYTHON_EXECUTABLE=python bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}" "${DEMO_BACKEND_DELEGATION}"
69+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "${BUILD_TOOL}"
70+ # Build and test ExecuTorch
71+ PYTHON_EXECUTABLE=python bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}" "${DEMO_BACKEND_DELEGATION}"
0 commit comments