Deploy interactive docs to GitHub Pages #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.13t"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: recursive | |
fetch-tags: true | |
persist-credentials: false | |
- name: Setup Python | |
uses: quansight-labs/setup-python@b9ab292c751a42bcd2bb465b7fa202ea2c3f5796 # v5.3.1 | |
with: | |
python-version: ${{ matrix.compiler-pyversion[1] }} | |
# TODO: remove cython nightly install when cython does a release | |
- name: Install nightly Cython | |
if: matrix.compiler-pyversion[1] == '3.13t' | |
run: | | |
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython | |
- name: Install build dependencies from PyPI | |
run: | | |
python -m 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_32bit_python_no_openblas: | |
name: MSVC, 32-bit Python, no BLAS | |
runs-on: windows-2019 | |
# 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 (32-bit) | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: '3.11' | |
architecture: 'x86' | |
- name: Setup MSVC (32-bit) | |
uses: bus1/cabuild/action/msdevshell@e22aba57d6e74891d059d66501b6b5aed8123c4d # v1 | |
with: | |
architecture: 'x86' | |
- 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 |