add .github

This commit is contained in:
mcDandy
2025-08-08 18:01:03 +02:00
parent b7ec776dd7
commit a9cb407f6a
4 changed files with 83 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
* more_math version:
* Python version:
* Operating System:
### Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
### What I Did
```
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
```
+34
View File
@@ -0,0 +1,34 @@
# GitHub CI build pipeline
name: {{ cookiecutter.project_slug }} CI build
on:
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: {% raw %} ${{ matrix.os }} {% endraw %}
env:
PYTHONIOENCODING: "utf8"
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: {% raw %} ${{ matrix.python-version }} {% endraw %}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run Linting
run: |
ruff check .
- name: Run Tests
run: |
pytest tests/
+21
View File
@@ -0,0 +1,21 @@
name: 📦 Publish to Comfy registry
on:
workflow_dispatch:
push:
tags:
- '*'
permissions:
issues: write
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
steps:
- name: ♻️ Check out code
uses: actions/checkout@v4
- name: 📦 Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
personal_access_token: {% raw %}${{ secrets.REGISTRY_ACCESS_TOKEN }}{% endraw %}
+13
View File
@@ -0,0 +1,13 @@
name: Validate backwards compatibility
on:
pull_request:
branches:
- master
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: comfy-org/node-diff@main