@@ -24,31 +24,30 @@ jobs:
2424 with :
2525 python-version : ${{ matrix.python-version }}
2626
27+ - name : Install build tools (Windows)
28+ if : runner.os == 'Windows'
29+ run : |
30+ choco install visualstudio2019buildtools --include-optional
31+ choco install windows-sdk-10.0 --include-optional
32+
33+ - name : Set environment variables (Windows)
34+ if : runner.os == 'Windows'
35+ run : |
36+ setx PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
37+
2738 - name : Debug environment
2839 run : |
2940 echo "OS: ${{ matrix.os }}"
3041 echo "Python Version: ${{ matrix.python-version }}"
3142 python --version
32- pip --version
33-
34- - name : Skip unsupported configurations
35- if : matrix.os == 'windows-latest' && matrix.python-version == '3.9'
36- run : |
37- echo "Skipping unsupported configuration: ${{ matrix.os }} with Python ${{ matrix.python-version }}"
43+ pip list
3844
3945 - name : Install dependencies
40- if : matrix.os != 'windows-latest' || matrix.python-version != '3.9'
4146 run : |
4247 python -m pip install --upgrade pip
4348 pip install -e '.[test]'
4449
45- - name : Install build tools (Windows)
46- if : runner.os == 'Windows' && matrix.python-version != '3.9'
47- run : |
48- choco install visualstudio2019buildtools --include-optional
49-
5050 - name : Run tests with pytest
51- if : matrix.os != 'windows-latest' || matrix.python-version != '3.9'
5251 run : |
5352 pytest tests/ -v
5453
@@ -63,19 +62,12 @@ jobs:
6362 with :
6463 python-version : ' 3.12'
6564
66- - name : Debug environment
67- run : |
68- echo "Python Version:"
69- python --version
70- echo "Pip Version:"
71- pip --version
72-
7365 - name : Install linting dependencies
7466 run : |
7567 python -m pip install --upgrade pip
7668 pip install black isort flake8
7769
78- - name : Auto-fix formatting issues
70+ - name : Auto-correct formatting issues
7971 run : |
8072 black optimrl tests
8173 isort optimrl tests
0 commit comments