Skip to content

Commit e9a96dd

Browse files
committed
Refactor build
1 parent 0312399 commit e9a96dd

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python: [cp313, cp314]
22-
os: [windows-11-arm]
21+
os: [windows-11-arm] # ubuntu-latest, windows-latest, macos-latest, macos-15-intel,
22+
python: [cp310, cp311, cp312, cp313, cp314]
2323
python_impl: [Python]
2424
include:
2525
- python: cp312
@@ -32,9 +32,9 @@ jobs:
3232
CIBW_ARCHS_MACOS: native
3333
# No support for pypy, musl, Win32 for 3.10+
3434
# Skip musl for 3.8 and 3.9 since no upstream wheels
35-
CIBW_SKIP: "pp* *-win32 *musllinux_aarch64*"
35+
CIBW_SKIP: "pp* *-win32 *musllinux_aarch64* cp310-win_arm64 cp311-win_arm64 cp312-win_arm64"
3636
CIBW_TEST_REQUIRES: pytest pytest-xdist pytest-randomly threadpoolctl
37-
CIBW_TEST_COMMAND: python -c "import numpy; numpy.show_runtime(); import statsmodels.base; statsmodels.base.test(['-v','-n','0','-s','-m', '(not slow and not example)', '--max-worker-restart','50'], exit=True)"
37+
CIBW_TEST_COMMAND: python -c "import numpy; numpy.show_runtime(); import statsmodels; statsmodels.test(['-m','(not slow and not example)','-n','2'], exit=True)"
3838
# Avoid testing on emulated architectures and Pyodide
3939
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *pyodide*"
4040
CIBW_REPAIR_WHEEL_COMMAND_LINUX: 'auditwheel repair --strip -w {dest_dir} {wheel}'
@@ -99,9 +99,30 @@ jobs:
9999
echo "TOKEN=$MULTIBUILD_WHEELS_STAGING_ACCESS" >> $GITHUB_ENV
100100
fi
101101
102-
- name: install anaconda-client
102+
- name: Install conda
103+
uses: conda-incubator/setup-miniconda@v3
104+
with:
105+
# for installation of anaconda-client, required for upload to
106+
# anaconda.org
107+
# default (and activated) environment name is test
108+
# Note that this step is *after* specific pythons have been used to
109+
# build and test the wheel
110+
auto-update-conda: true
111+
python-version: "3.12"
112+
miniforge-version: latest
113+
conda-remove-defaults: "true"
114+
115+
- name: Inspect conda and install anaconda-client
116+
shell: pwsh
117+
run: |
118+
conda info
119+
conda list
120+
conda install -y anaconda-client
121+
122+
- name: Install anaconda-client (Windows ARM64)
103123
shell: pwsh
104124
run: |
125+
python -m pip install pip -U
105126
pip install --only-binary :all: anaconda-client
106127
107128
- name: Upload wheels

0 commit comments

Comments
 (0)