Skip to content

Commit

Permalink
Merge pull request #38 from microsoft/python
Browse files Browse the repository at this point in the history
adding env variables in GHA
  • Loading branch information
sethjuarez authored Jul 11, 2024
2 parents 05bb8cf + 089f683 commit 7a0d8eb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/prompty-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7a0d8eb

Please sign in to comment.