forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
136 lines (114 loc) · 4.08 KB
/
windows.yml
File metadata and controls
136 lines (114 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Windows tests
on:
pull_request:
branches:
- main
- maintenance/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
python64bit_openblas:
name: x86-64, LP64 OpenBLAS
runs-on: windows-2019
# To enable this job on a fork, comment out:
if: github.repository == 'numpy/numpy'
strategy:
fail-fast: false
matrix:
compiler-pyversion:
- ["MSVC", "3.11"]
- ["Clang-cl", "3.14t"]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
fetch-tags: true
persist-credentials: false
- name: Setup Python
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca
with:
activate-environment: true
python-version: ${{ matrix.compiler-pyversion[1] }}
enable-cache: false
- run:
uv pip install --python=${{ matrix.version }} pip
- name: Install build dependencies from PyPI
run: |
pip install -r requirements/build_requirements.txt
- name: Install pkg-config
run: |
choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
echo "PKG_CONFIG_PATH=${{ github.workspace }}/.openblas" >> $env:GITHUB_ENV
- name: Install Clang-cl
if: matrix.compiler-pyversion[0] == 'Clang-cl'
run: |
# llvm is preinstalled, but leave
# this here in case we need to pin the
# version at some point.
#choco install llvm -y
- name: Install NumPy (MSVC)
if: matrix.compiler-pyversion[0] == 'MSVC'
run: |
pip install -r requirements/ci_requirements.txt
spin build --with-scipy-openblas=32 -j2 -- --vsenv
- name: Install NumPy (Clang-cl)
if: matrix.compiler-pyversion[0] == 'Clang-cl'
run: |
"[binaries]","c = 'clang-cl'","cpp = 'clang-cl'","ar = 'llvm-lib'","c_ld = 'lld-link'","cpp_ld = 'lld-link'" | Out-File $PWD/clang-cl-build.ini -Encoding ascii
pip install -r requirements/ci_requirements.txt
spin build --with-scipy-openblas=32 -j2 -- --vsenv --native-file=$PWD/clang-cl-build.ini
- name: Meson Log
shell: bash
if: ${{ failure() }}
run: |
cat build/meson-logs/meson-log.txt
- name: Install test dependencies
run: |
python -m pip install -r requirements/test_requirements.txt
python -m pip install threadpoolctl
- name: Run test suite
run: |
spin test -- --timeout=600 --durations=10
msvc_python_no_openblas:
name: MSVC, ${{ matrix.architecture }} Python , no BLAS
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
architecture: x86
- os: windows-11-arm
architecture: arm64
# To enable this job on a fork, comment out:
if: github.repository == 'numpy/numpy'
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
fetch-tags: true
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
architecture: ${{ matrix.architecture }}
- name: Setup MSVC
uses: bus1/cabuild/action/msdevshell@e22aba57d6e74891d059d66501b6b5aed8123c4d # v1
with:
architecture: ${{ matrix.architecture }}
- name: Build and install
run: |
python -m pip install . -v -Ccompile-args="-j2" -Csetup-args="-Dallow-noblas=true"
- name: Install test dependencies
run: |
python -m pip install -r requirements/test_requirements.txt
- name: Run test suite (fast)
run: |
cd tools
python -m pytest --pyargs numpy -m "not slow" -n2 --timeout=600 --durations=10