Skip to content

Commit

Permalink
ci: fix wheel building, and test cibuildwheel on main (#27)
Browse files Browse the repository at this point in the history
* ci: try build wheel on main

* change condition

* fallback to other ruff
  • Loading branch information
tlambert03 authored Dec 13, 2024
1 parent 4a5e49e commit 46fa176
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:

jobs:
build_wheels:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
name: Build wheels on ${{ matrix.os }} ${{ matrix.macos_arch }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down
5 changes: 3 additions & 2 deletions scripts/build_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def build_stub(module_path: Path, output_path: str):

dest.write_text(stub_txt)
ruff = Path(sys.executable).parent / "ruff"
subprocess.run([str(ruff), "format", output_path], check=True)
subprocess.run([str(ruff), "check", "--fix-only", output_path])
_ruff = str(ruff) if ruff.exists() else "ruff"
subprocess.run([_ruff, "format", output_path], check=True)
subprocess.run([_ruff, "check", "--fix-only", output_path])


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion src/_pymmcore_nano.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ class MetadataTag:

Misconfigured: int = -1
NoAction: int = 0
PYMMCORE_NANO_VERSION: str = "0.dev1"
PYMMCORE_NANO_VERSION: str = "0.dev2"

class PortType(enum.IntEnum):
InvalidPort = 0
Expand Down

0 comments on commit 46fa176

Please sign in to comment.