Skip to content

Commit

Permalink
chore: test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhihenpidehou committed Nov 21, 2024
1 parent 2fa1a40 commit 539d2f8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/buildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,26 @@ jobs:
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
build_wheels:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist

# - name: Upload distributions
# uses: actions/upload-artifact@v4
# with:
# name: release-dists
# path: dist/
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -115,24 +134,7 @@ jobs:



build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist

# - name: Upload distributions
# uses: actions/upload-artifact@v4
# with:
# name: release-dists
# path: dist/
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz

upload_pypi:
# needs: [ build_wheels, build_sdist ]
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,16 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
# installing torch is very time consuming
# test-requires = ["pytest", "lxml", "torch"]
# test-command = "pytest"
build = ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*"]

free-threaded-support = true

# Skip building free-threaded compatible wheels on Windows
free-threaded-support = true
skip = "*t-win*"

build = ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*"]



# https://cibuildwheel.readthedocs.io/en/stable/faq/#cibw-options-alternatives-deps
[build-system]
requires = ["setuptools>=42", "wheel", "Cython", "pybind11"]
Expand Down

0 comments on commit 539d2f8

Please sign in to comment.