fix: make clean package builds reproducible

This commit is contained in:
Krishi Attri
2026-07-25 00:33:51 +00:00
parent 2582dd907a
commit 22c9765b71
2 changed files with 34 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
- name: Run CPU unit tests
run: python -m pytest -q
- name: Build wheel from clean metadata
run: python -m pip wheel . --no-deps --wheel-dir dist
+6
View File
@@ -12,6 +12,9 @@ requires-python = ">=3.9"
dependencies = ["hicache-pp>=1.1.0"]
classifiers = ["Development Status :: 5 - Production/Stable"]
[project.optional-dependencies]
test = ["pytest>=8", "numpy>=1.24", "torch>=2.1"]
[project.urls]
Repository = "https://github.com/Archerkattri/ComfyUI-HiCache"
BugTracker = "https://github.com/Archerkattri/ComfyUI-HiCache/issues"
@@ -24,3 +27,6 @@ Icon = "https://raw.githubusercontent.com/Archerkattri/ComfyUI-HiCache/main/icon
[tool.pytest.ini_options]
addopts = "--import-mode=importlib"
testpaths = ["tests"]
[tool.setuptools]
py-modules = ["hicache_patch", "nodes"]