diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index c2314bb..52d377e 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -97,7 +97,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: ${{ matrix.asset_name }} + name: binaries-${{ matrix.os }} path: | dist/${{ matrix.artifact_name }} voxvera/resources/bin/*.deb diff --git a/ci/test-e2e.sh b/ci/test-e2e.sh index 4ee6da0..59fc45b 100755 --- a/ci/test-e2e.sh +++ b/ci/test-e2e.sh @@ -10,7 +10,7 @@ if [ -n "${VOXVERA_BIN:-}" ]; then voxvera_cmd="$VOXVERA_BIN" echo "Using provided VoxVera binary: $voxvera_cmd" >&2 else - { time pip install --break-system-packages -e .; } 2>&1 + { time python3 -m pip install --break-system-packages -e ".[e2e]"; } 2>&1 voxvera_cmd="$(command -v voxvera)" fi @@ -22,7 +22,7 @@ EOI "$voxvera_cmd" --lang en build # Verify build output exists in host/ -folder_name=$(python3 -c "import json; print(json.load(open('voxvera/host/voxvera/config.json'))['folder_name'])") +folder_name="demosite" host_dir="voxvera/host/$folder_name" ls -R "$host_dir" >>"$LOG_DIR/tree.txt" diff --git a/tests/test_e2e.py b/tests/test_e2e.py index 208dd7f..0e21a8d 100644 --- a/tests/test_e2e.py +++ b/tests/test_e2e.py @@ -107,10 +107,12 @@ class TestFullWorkflow: # Setup temp workspace repo_root = Path(__file__).resolve().parent.parent shutil.copytree(repo_root / "voxvera" / "src", tmp_path / "src") + shutil.copytree(repo_root / "voxvera" / "locales", tmp_path / "locales") # Monkeypatch ROOT to use temp directory monkeypatch.setattr(cli, "ROOT", tmp_path) monkeypatch.setattr(cli, "_src_res", lambda *p: tmp_path / "src" / Path(*p)) + monkeypatch.setattr(cli, "_locale_res", lambda *p: tmp_path / "locales" / Path(*p)) # Create test config config = { @@ -201,8 +203,11 @@ class TestFullWorkflow: # Setup repo_root = Path(__file__).resolve().parent.parent shutil.copytree(repo_root / "voxvera" / "src", tmp_path / "src") + shutil.copytree(repo_root / "voxvera" / "locales", tmp_path / "locales") + monkeypatch.setattr(cli, "ROOT", tmp_path) monkeypatch.setattr(cli, "_src_res", lambda *p: tmp_path / "src" / Path(*p)) + monkeypatch.setattr(cli, "_locale_res", lambda *p: tmp_path / "locales" / Path(*p)) config = { "name": "Reachability Test", @@ -321,8 +326,11 @@ class TestSiteFiles: # Setup repo_root = Path(__file__).resolve().parent.parent shutil.copytree(repo_root / "voxvera" / "src", tmp_path / "src") + shutil.copytree(repo_root / "voxvera" / "locales", tmp_path / "locales") + monkeypatch.setattr(cli, "ROOT", tmp_path) monkeypatch.setattr(cli, "_src_res", lambda *p: tmp_path / "src" / Path(*p)) + monkeypatch.setattr(cli, "_locale_res", lambda *p: tmp_path / "locales" / Path(*p)) config = { "name": "Test",