Skip to content

Commit a2b43ec

Browse files
committed
CI: print Python diagnosis on Windows
1 parent e63cca4 commit a2b43ec

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/rust.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ jobs:
3131
- build: win64
3232
os: windows-latest
3333
rust: stable
34+
- build: anaconda win64
35+
os: windows-latest
36+
rust: stable
3437
steps:
3538
- uses: actions/checkout@master
39+
- name: Diagnose Python used (Windows)
40+
if: ${{ matrix.os == 'windows-latest' && ! startsWith(matrix.build, 'anaconda') }}
41+
shell: pwsh
42+
run: |
43+
python -c "import sys, platform; print(sys.executable); print(sys.version); print(platform.platform())"
44+
python -c "import numpy, matplotlib; print('numpy', numpy.__version__); print('matplotlib', matplotlib.__version__)"
3645
- uses: actions/setup-python@v6
3746
with:
38-
python-version: '3.12'
47+
python-version: '3.14'
3948
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
4049
- name: Install Matplotlib (pip)
4150
run: python3 -m pip install -U matplotlib

0 commit comments

Comments
 (0)