Skip to content
Merged
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
52 changes: 52 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: pytest
permissions:
contents: read

on:
- pull_request
Expand Down Expand Up @@ -26,3 +28,53 @@ jobs:

- name: pytest
run: pytest --cov=pyds

wheels:
runs-on: ${{ matrix.os }}
needs: pytest

if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags')"

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v6

- name: recovery tag information
run: git fetch --tags --force

- uses: actions/setup-python@v4
with:
python-version: '3.13'

- name: install cibuildwheel
run: pip install cibuildwheel

- name: build wheels
run: python -m cibuildwheel
env:
CIBW_ENVIRONMENT_WINDOWS: SKBUILD_CMAKE_ARGS=-GNinja

- uses: actions/upload-artifact@v5
with:
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl

upload:
runs-on: ubuntu-latest
needs: wheels

environment: pypi

steps:
- uses: actions/download-artifact@v3
with:
pattern: wheels-*
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires = [
build-backend = "scikit_build_core.build"

[project]
name = "pyds"
name = "apyds"
dynamic = ["version"]
dependencies = []
requires-python = ">=3.10, <3.14"
Expand All @@ -22,6 +22,7 @@ version_scheme = "no-guess-dev"
fallback_version = "0.0.0"

[tool.scikit-build]
wheel.packages = ["pyds"]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
build.verbose = true

Expand Down