From 5abab48b359be7543ee06788523fbeaede2bc81f Mon Sep 17 00:00:00 2001 From: matei jordache Date: Sat, 4 Apr 2026 16:33:36 -0700 Subject: [PATCH] fix submodule links and CI workflow --- .github/workflows/importers.yml | 48 +++++++++++++++++++++++++++++++++ .github/workflows/tests.yml | 2 -- .gitmodules | 2 +- 3 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/importers.yml diff --git a/.github/workflows/importers.yml b/.github/workflows/importers.yml new file mode 100644 index 0000000..c0e195d --- /dev/null +++ b/.github/workflows/importers.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 141cd72..2fedfa9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,8 +10,6 @@ jobs: steps: - uses: actions/checkout@v4 - with: - submodules: recursive - uses: actions/setup-python@v5 with: diff --git a/.gitmodules b/.gitmodules index 9817909..4de2c73 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "demo"] path = demo - url = https://github.com/vipqualitypost/string-demo-images + url = https://github.com/vipqualitypost/tono-demo-images.git [submodule "tests/fixtures"] path = tests/fixtures url = https://github.com/vipqualitypost/tono-test-data.git