fix submodule links and CI workflow

This commit is contained in:
2026-04-04 16:33:36 -07:00
parent 245f0d9759
commit 5abab48b35
3 changed files with 49 additions and 3 deletions

48
.github/workflows/importers.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: Importers
# Heavy importer tests that need real instrument files from the
# tono-test-data submodule. Only run when importer code or tests change.
on:
push:
paths:
- 'backend/importers/**'
- 'backend/nodes/image_demo.py'
- 'tests/node_tests/importers.py'
- 'tests/node_tests/image_demo.py'
- 'pyproject.toml'
- '.github/workflows/importers.yml'
pull_request:
paths:
- 'backend/importers/**'
- 'backend/nodes/image_demo.py'
- 'tests/node_tests/importers.py'
- 'tests/node_tests/image_demo.py'
- 'pyproject.toml'
- '.github/workflows/importers.yml'
jobs:
importer-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Pull only tests/fixtures — not demo/, which is ~100 MB of images
# that aren't needed here.
- name: Init tests/fixtures submodule
run: git submodule update --init --depth 1 tests/fixtures
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install Python dependencies
run: pip install -e ".[server,dev]"
- name: Run importer tests
run: |
python -m pytest -q \
tests/node_tests/importers.py \
tests/node_tests/image_demo.py

View File

@@ -10,8 +10,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:

2
.gitmodules vendored
View File

@@ -1,6 +1,6 @@
[submodule "demo"] [submodule "demo"]
path = demo path = demo
url = https://github.com/vipqualitypost/string-demo-images url = https://github.com/vipqualitypost/tono-demo-images.git
[submodule "tests/fixtures"] [submodule "tests/fixtures"]
path = tests/fixtures path = tests/fixtures
url = https://github.com/vipqualitypost/tono-test-data.git url = https://github.com/vipqualitypost/tono-test-data.git