🌐 AI搜索 & 代理 主页
Skip to content

Commit 5272e34

Browse files
committed
Synchronize the environment
1 parent 9bd7839 commit 5272e34

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,17 @@ jobs:
5858
- name: Set up Python ${{ matrix.python }}
5959
uses: astral-sh/setup-uv@v7
6060
with:
61+
architecture: ${{ matrix.os.platform }}
6162
python-version: ${{ matrix.python }}
63+
cache-python: true
6264
activate-environment: true
6365
enable-cache: true
6466

6567
- name: Synchronize the virtual environment
66-
run: uv sync
68+
run: uv sync --managed-python
69+
70+
- name: Show pyvenv.cfg
71+
run: cat .venv/pyvenv.cfg
6772

6873
- name: Embedding tests (Mono/.NET Framework)
6974
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/
@@ -77,14 +82,14 @@ jobs:
7782

7883
- name: Python Tests (Mono)
7984
if: ${{ matrix.os.category != 'windows' }}
80-
run: python -m pytest --runtime mono
85+
run: pytest --runtime mono
8186

8287
- name: Python Tests (.NET Core)
83-
run: python -m pytest --runtime coreclr
88+
run: pytest --runtime coreclr
8489

8590
- name: Python Tests (.NET Framework)
8691
if: ${{ matrix.os.category == 'windows' }}
87-
run: python -m pytest --runtime netfx
92+
run: pytest --runtime netfx
8893

8994
- name: Python tests run from .NET
9095
run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/

0 commit comments

Comments
 (0)