Harden SAM-Audio loading and inference

This commit is contained in:
Ethanfel
2026-09-06 22:59:57 +02:00
parent dca2f22766
commit 68239634ea
19 changed files with 1179 additions and 107 deletions
+23
View File
@@ -12,8 +12,31 @@ permissions:
contents: read
jobs:
test:
name: Test release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install test dependencies
run: |
python -m pip install --index-url https://download.pytorch.org/whl/cpu torch torchaudio
python -m pip install pytest ruff
- name: Lint and test
run: |
ruff check .
pytest -q
publish-node:
name: Publish custom node
needs: test
runs-on: ubuntu-latest
steps:
- name: Check out code
+38
View File
@@ -0,0 +1,38 @@
name: Tests
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.13"]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install --index-url https://download.pytorch.org/whl/cpu torch torchaudio
python -m pip install pytest ruff
- name: Lint
run: ruff check .
- name: Test
run: pytest -q