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 3, 2024
1 parent 8212daa commit 212c41b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# to supply options, put them in 'env', like:
env:
CIBW_BEFORE_ALL_MACOS: bash scripts/cibw_before_all_macos.sh
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
CIBW_SKIP: "*-win32 *-manylinux_i686 *aarch64 *ppc64le *s390x *universal2 *arm64"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest --pyargs qmeq
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/full_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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-20.04, windows-2019, macos-10.15]

steps:
- uses: actions/checkout@v2

- name: Build wheels
uses: pypa/[email protected]
# to supply options, put them in 'env', like:
env:
CIBW_BEFORE_ALL_MACOS: bash scripts/cibw_before_all_macos.sh
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
CIBW_SKIP: "*-win32 *-manylinux_i686 *aarch64 *ppc64le *s390x *universal2 *arm64"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest --pyargs qmeq

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires-python = ">=3.6"
requires = [
"setuptools>=42",
"wheel",
"cython",
"cython==0.29",
"numpy",
"scipy"
]
Expand Down

0 comments on commit 212c41b

Please sign in to comment.