Skip to content

Commit f54d0aa

Browse files
committed
testing conda env for last test error
1 parent f9ced6e commit f54d0aa

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

.github/workflows/build_wheels.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Build Wheels
33
on:
44
push:
55
branches:
6-
- main
6+
- testing-pkg
77
tags:
8-
- 'quaddtype-v*'
8+
- "quaddtype-v*"
99
paths:
10-
- 'quaddtype/**'
10+
- "quaddtype/**"
1111
pull_request:
1212
paths:
13-
- 'quaddtype/**'
13+
- "quaddtype/**"
1414
workflow_dispatch:
1515

1616
jobs:
@@ -23,16 +23,16 @@ jobs:
2323
- name: Set up Python
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: '>=3.10.0'
26+
python-version: ">=3.10.0"
2727

2828
- name: Install cibuildwheel
2929
run: pip install cibuildwheel==2.20.0
3030

3131
- name: Build wheels
3232
env:
33-
CIBW_BUILD: 'cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64'
33+
CIBW_BUILD: "cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64"
3434
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
35-
CIBW_BUILD_VERBOSITY: '3'
35+
CIBW_BUILD_VERBOSITY: "3"
3636
CIBW_BEFORE_ALL: |
3737
git clone https://github.com/shibatch/sleef.git
3838
cd sleef
@@ -49,7 +49,7 @@ jobs:
4949
CIBW_TEST_COMMAND: |
5050
pip install {package}[test]
5151
pytest {project}/tests
52-
CIBW_TEST_EXTRAS: 'test'
52+
CIBW_TEST_EXTRAS: "test"
5353
run: |
5454
python -m cibuildwheel --output-dir wheelhouse
5555
working-directory: ./quaddtype
@@ -72,11 +72,11 @@ jobs:
7272
- name: Set up Python
7373
uses: actions/setup-python@v4
7474
with:
75-
python-version: '3.10'
75+
python-version: "3.10"
7676

7777
- name: Install SLEEF
7878
env:
79-
MACOSX_DEPLOYMENT_TARGET: '11.0'
79+
MACOSX_DEPLOYMENT_TARGET: "11.0"
8080
run: |
8181
git clone https://github.com/shibatch/sleef.git
8282
cd sleef
@@ -94,9 +94,9 @@ jobs:
9494

9595
- name: Build wheels
9696
env:
97-
CIBW_BUILD: 'cp310-* cp311-* cp312-*'
97+
CIBW_BUILD: "cp310-* cp311-* cp312-*"
9898
CIBW_ARCHS_MACOS: ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
99-
CIBW_BUILD_VERBOSITY: '1'
99+
CIBW_BUILD_VERBOSITY: "1"
100100
CIBW_ENVIRONMENT: >
101101
MACOSX_DEPLOYMENT_TARGET="11.0"
102102
DYLD_LIBRARY_PATH="/usr/local/lib:$DYLD_LIBRARY_PATH"
@@ -108,7 +108,7 @@ jobs:
108108
CIBW_TEST_COMMAND: |
109109
pip install {package}[test]
110110
pytest {project}/tests
111-
CIBW_TEST_EXTRAS: 'test'
111+
CIBW_TEST_EXTRAS: "test"
112112
run: |
113113
python -m cibuildwheel --output-dir wheelhouse
114114
working-directory: ./quaddtype
@@ -136,7 +136,7 @@ jobs:
136136
- name: Set up Python 3.10
137137
uses: actions/setup-python@v4
138138
with:
139-
python-version: '3.10'
139+
python-version: "3.10"
140140
architecture: ${{ matrix.architecture }}
141141

142142
- name: Install CMake
@@ -169,12 +169,12 @@ jobs:
169169
170170
- name: Build wheels
171171
env:
172-
CIBW_BUILD: 'cp310-* cp311-* cp312-*'
173-
CIBW_SKIP: 'pp* cp36-* cp37-* cp38-* cp39-* cp313-*'
172+
CIBW_BUILD: "cp310-* cp311-* cp312-*"
173+
CIBW_SKIP: "pp* cp36-* cp37-* cp38-* cp39-* cp313-*"
174174
CIBW_ARCHS_WINDOWS: ${{ matrix.architecture == 'x86' && 'x86' || 'AMD64' }}
175-
CIBW_BUILD_VERBOSITY: '3'
176-
DISTUTILS_USE_SDK: '1'
177-
MSSdk: '1'
175+
CIBW_BUILD_VERBOSITY: "3"
176+
DISTUTILS_USE_SDK: "1"
177+
MSSdk: "1"
178178
CIBW_BEFORE_BUILD: |
179179
pip install meson meson-python ninja numpy
180180
CIBW_REPAIR_WHEEL_COMMAND: 'delvewheel repair -w {dest_dir} {wheel} --add-path C:\sleef\bin'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,5 @@ compile_commands.json
135135
.asv
136136
.vscode/
137137
*.whl
138+
.DS_Store
139+
.idea/

quaddtype/tests/test_quaddtype.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,6 @@ def test_array_operations():
9999
result = arr1 + arr2
100100
expected = np.array(
101101
[QuadPrecision("2.0"), QuadPrecision("3.5"), QuadPrecision("5.0")])
102+
print(f"result: {result}")
103+
print(f"expected: {expected}")
102104
assert np.all(result == expected)

0 commit comments

Comments
 (0)