Files
HappyOnigiri-ComfyUI-Meld/.github/workflows/ci.yml
T

48 lines
1.1 KiB
YAML

name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: ui/package-lock.json
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install numpy Pillow ruff mypy aiohttp
- name: Install UI dependencies
working-directory: ui
run: npm ci
- name: Run CI
run: make ci
- name: Check for diff
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: Working directory is dirty after CI."
echo "Please run 'make ci' locally and commit the changes."
git status --porcelain
exit 1
fi