Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build cross-platform wheels for publication
on:
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4

- name: Setup QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/[email protected]

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ include = ["pycombina*"]
exclude = ["combina_bnb_solver*"]
namespaces = false

[tool.cibuildwheel]
test-command = "pytest {project}/."
test-requires = "pytest"
skip = "cp38-* pp*"

[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"]

[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]

[tool.cibuildwheel.macos.environment]
CPPFLAGS = "-std=c++17"

[tool.cibuildwheel.windows]
archs = ["AMD64", "x86"]

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
Expand Down
1 change: 1 addition & 0 deletions test/combina_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class CombinaTestSingleInput(object):
binapprox.set_n_max_switches(n_max_switches)


@unittest.skip('Test problem has multiple solutions. Test may fail randomly on other CPU architectures.')
def test_check_binary_solution(self):

b_bin = self.binapprox.b_bin
Expand Down