From 1b026bf2bbb64b6677ae3ef66ef0b07bbfd646bc Mon Sep 17 00:00:00 2001 From: Billy Hu Date: Fri, 19 Apr 2024 11:20:10 -0700 Subject: [PATCH] update --- .github/workflows/promptflow-evals-e2e-test.yml | 4 +++- .github/workflows/promptflow-evals-unit-test.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/promptflow-evals-e2e-test.yml b/.github/workflows/promptflow-evals-e2e-test.yml index 63ff9b1a699..afa469ca222 100644 --- a/.github/workflows/promptflow-evals-e2e-test.yml +++ b/.github/workflows/promptflow-evals-e2e-test.yml @@ -70,7 +70,9 @@ jobs: run: poetry install --only test working-directory: ${{ env.WORKING_DIRECTORY }} - name: install recording - run: poetry install + run: | + pip install vcrpy + pip install . working-directory: ${{ env.RECORD_DIRECTORY }} - name: generate end-to-end test config from secret run: echo '${{ secrets.PF_EVALS_E2E_TEST_CONFIG }}' >> connections.json diff --git a/.github/workflows/promptflow-evals-unit-test.yml b/.github/workflows/promptflow-evals-unit-test.yml index 9f0575b7ac6..3b982b5e770 100644 --- a/.github/workflows/promptflow-evals-unit-test.yml +++ b/.github/workflows/promptflow-evals-unit-test.yml @@ -66,7 +66,9 @@ jobs: run: poetry install --only test working-directory: ${{ env.WORKING_DIRECTORY }} - name: install recording - run: poetry install + run: | + pip install vcrpy + pip install . working-directory: ${{ env.RECORD_DIRECTORY }} - name: run unit tests run: poetry run pytest -m unittest --cov=promptflow --cov-config=pyproject.toml --cov-report=term --cov-report=html --cov-report=xml