Skip to content

Commit a3bc331

Browse files
committed
fix: check python version, fix ms-agent example dependency issue
1 parent e9953ba commit a3bc331

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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

call-apis-on-users-behalf/others-api/ms-agent-framework-vault-token-py/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ uvicorn>=0.15.0
33
pydantic>=2.0.0
44
pydantic-settings>=2.0.0
55
agent-framework
6-
auth0-fastapi>=0.3.0
6+
auth0-fastapi>=1.0.0b1
77
starlette
88
itsdangerous

0 commit comments

Comments
 (0)