From f6910bcc2637cb9b93e76f70d1a0da0a2209f26b Mon Sep 17 00:00:00 2001 From: Love241982 Date: Thu, 24 Apr 2025 19:56:21 -0400 Subject: [PATCH] Update e2e.yml --- .github/workflows/e2e.yml | 47 +++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 13b9aa66e3..6c396fb74b 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,23 +1,36 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright 2022 The HuggingFace Authors. -name: e2e -on: - workflow_dispatch: - push: - branches: - - main - paths: - - "e2e/**" - - "libs/**" - - "services/**" - - "docs/source/openapi.json" - - ".github/workflows/_e2e_tests.yml" - - ".github/workflows/_quality-python.yml" - - ".github/workflows/e2e.yml" - - "tools/Python.mk" - - "tools/docker-compose-dataset-viewer.yml" - pull_request: +jobs: + e2e-tests: + uses: ./.github/workflows/_e2e_tests.yml + secrets: inherit + with: + working-directory: e2e + steps: + - name: Install Dependencies with Poetry + run: | + poetry install --no-root + - name: Check for Missing Dependencies + run: | + if [ ! -d "path-to-required-package" ]; then echo "Missing package detected"; exit 1; fix + jobs: + e2e-tests: + uses: ./.github/workflows/_e2e_tests.yml + secrets: inherit + with: + working-directory: e2e + steps: + - name: Install Dependencies with Poetry + run: | + poetry install --no-root + - name: Check for Missing Dependencies + run: | + if [ ! -d "path-to-required-package" ]; then echo "Missing package detected"; exit 1; fi + - name: Setup Test Dataset + run: | + curl -X POST http://localhost:8000/datasets --data '{"id": "tmp-dataset-123"}' + paths: - "e2e/**" - "libs/**"