From 089f683a4c8fd765da7dc1cc81eb88d91524afc1 Mon Sep 17 00:00:00 2001 From: sethjuarez Date: Wed, 10 Jul 2024 23:21:46 -0700 Subject: [PATCH] adding env variables in GHA --- .github/workflows/prompty-python.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/prompty-python.yml b/.github/workflows/prompty-python.yml index 27c9cd7..f3eab87 100644 --- a/.github/workflows/prompty-python.yml +++ b/.github/workflows/prompty-python.yml @@ -8,6 +8,12 @@ on: - 'python/*' workflow_dispatch: + +env: + AZURE_OPENAI_ENDPOINT: https://fake + AZURE_OPENAI_KEY: 12342323433 + + jobs: pypi-publish: name: upload release to PyPI @@ -22,17 +28,10 @@ jobs: - uses: pdm-project/setup-pdm@v3 - - name: write fake env file - working-directory: ./runtime/prompty - run: | - echo "AZURE_OPENAI_ENDPOINT=https://fake\\nAZURE_OPENAI_KEY=123432" > .env - cat .env - - name: install dependencies working-directory: ./runtime/prompty run: pdm install - - name: test package working-directory: ./runtime/prompty run: pdm run pytest