Synchronize the environment · pythonnet/pythonnet@e8e6f90

Original file line numberDiff line numberDiff line change

@@ -58,10 +58,14 @@ jobs:

5858

- name: Set up Python ${{ matrix.python }}

5959

uses: astral-sh/setup-uv@v6

6060

with:

61+

architecture: ${{ matrix.os.platform }}

6162

python-version: ${{ matrix.python }}

6263

activate-environment: true

6364

enable-cache: true

6465
66+

- name: Synchronize the virtual environment

67+

run: uv sync

68+
6569

- name: Embedding tests (Mono/.NET Framework)

6670

run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/

6771

if: always()

@@ -74,14 +78,14 @@ jobs:

7478
7579

- name: Python Tests (Mono)

7680

if: ${{ matrix.os.category != 'windows' }}

77-

run: python -m pytest --runtime mono

81+

run: pytest --runtime mono

7882
7983

- name: Python Tests (.NET Core)

80-

run: python -m pytest --runtime coreclr

84+

run: pytest --runtime coreclr

8185
8286

- name: Python Tests (.NET Framework)

8387

if: ${{ matrix.os.category == 'windows' }}

84-

run: python -m pytest --runtime netfx

88+

run: pytest --runtime netfx

8589
8690

- name: Python tests run from .NET

8791

run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/