Skip to content

Commit

Permalink
Introduce full_test.yml and use Python versions 3.8 to 3.12 in CIBW_B…
Browse files Browse the repository at this point in the history
…UILD.
  • Loading branch information
Gediminas Kirsanskas committed May 4, 2024
1 parent e7581b4 commit bd88c0d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/full_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Full test

on:
push:
branches: [ master]
pull_request:
branches: [ master ]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-11]

steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v5

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.17.0

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_BEFORE_ALL_MACOS: bash scripts/cibw_before_all_macos.sh
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest --pyargs qmeq

- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
22 changes: 20 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = [
"wheel",
"cython==0.29.37",
"numpy",
"scipy"
"scipy<=1.11.4"
]
build-backend = "setuptools.build_meta"

Expand All @@ -13,7 +13,7 @@ name = "qmeq"
version = "1.1"
dependencies = [
"numpy",
"scipy"
"scipy<=1.11.4"
]
requires-python = ">=3.8"
authors = [
Expand Down Expand Up @@ -41,3 +41,21 @@ classifiers = [

[project.urls]
Homepage = "http://github.com/gedaskir/qmeq"

[tool.cibuildwheel]
build = [
"cp38-*",
"cp39-*",
"cp310-*",
"cp311-*",
"cp312-*"
]
skip = [
"*-win32",
"*-manylinux_i686",
"*aarch64",
"*ppc64le",
"*s390x",
"*universal2",
"*arm64"
]

0 comments on commit bd88c0d

Please sign in to comment.