From 7a1408b1973e209296255e613fdee226bc26ded1 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Thu, 14 Nov 2024 02:16:00 +0100 Subject: [PATCH] Improve node hub CI/CD --- .github/workflows/node-hub-ci-cd.yml | 2 +- .github/workflows/node_hub_test.sh | 2 ++ node-hub/dora-opus/pyproject.toml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node-hub-ci-cd.yml b/.github/workflows/node-hub-ci-cd.yml index fda031960..b7e1d5437 100644 --- a/.github/workflows/node-hub-ci-cd.yml +++ b/.github/workflows/node-hub-ci-cd.yml @@ -79,7 +79,7 @@ jobs: needs: [ci, find-jobs] defaults: run: - working-directory: ${{ matrix.folder }} + working-directory: node-hub/${{ matrix.folder }} strategy: matrix: folder: ${{ fromJson(needs.find-jobs.outputs.folders )}} diff --git a/.github/workflows/node_hub_test.sh b/.github/workflows/node_hub_test.sh index aec16c8fa..9ffd1d8ed 100755 --- a/.github/workflows/node_hub_test.sh +++ b/.github/workflows/node_hub_test.sh @@ -16,6 +16,8 @@ if [[ " ${ignored_folders[@]} " =~ " ${base_dir} " ]]; then else if [ -f "$dir/Cargo.toml" ]; then echo "Running build and tests for Rust project in $dir..." + cargo check + cargo clippy cargo build cargo test else diff --git a/node-hub/dora-opus/pyproject.toml b/node-hub/dora-opus/pyproject.toml index c99fe5f6f..f4e67ab60 100644 --- a/node-hub/dora-opus/pyproject.toml +++ b/node-hub/dora-opus/pyproject.toml @@ -17,6 +17,7 @@ numpy = "< 2.0.0" python = "^3.7" transformers = "^4.45" modelscope = "^1.18.1" +sentencepiece = "^0.1.99" [tool.poetry.scripts] dora-opus = "dora_opus.main:main"