File tree Expand file tree Collapse file tree
call-apis-on-users-behalf/others-api/ms-agent-framework-vault-token-py Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,10 +215,21 @@ jobs:
215215 steps :
216216 - uses : actions/checkout@v4
217217
218+ - name : Detect Python version
219+ id : python-version
220+ working-directory : ${{ matrix.project }}
221+ run : |
222+ if [ -f ".python-version" ]; then
223+ VERSION=$(cat .python-version | tr -d '[:space:]')
224+ echo "version=$VERSION" >> $GITHUB_OUTPUT
225+ else
226+ echo "version=3.12" >> $GITHUB_OUTPUT
227+ fi
228+
218229 - name : Setup Python
219230 uses : actions/setup-python@v5
220231 with :
221- python-version : " 3.12 "
232+ python-version : ${{ steps.python-version.outputs.version }}
222233
223234 - name : Cache pip dependencies
224235 uses : actions/cache@v4
@@ -232,6 +243,10 @@ jobs:
232243 working-directory : ${{ matrix.project }}
233244 run : |
234245 python -m pip install --upgrade pip
246+ # Use project-level pip.conf if it exists
247+ if [ -f "pip.conf" ]; then
248+ export PIP_CONFIG_FILE="$(pwd)/pip.conf"
249+ fi
235250 pip install -r requirements.txt
236251
237252 - name : Install linters
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ uvicorn>=0.15.0
33pydantic >= 2.0.0
44pydantic-settings >= 2.0.0
55agent-framework
6- auth0-fastapi >= 0.3.0
6+ auth0-fastapi >= 1.0.0b1
77starlette
88itsdangerous
You can’t perform that action at this time.
0 commit comments