Browse Source

Fix CI/CD by allowing maturing to be installed with pip

tags/v0.3.9-rc1
haixuantao 1 year ago
parent
commit
a059f71e22
2 changed files with 6 additions and 5 deletions
  1. +2
    -2
      .github/workflows/node-hub-ci-cd.yml
  2. +4
    -3
      .github/workflows/node_hub_test.sh

+ 2
- 2
.github/workflows/node-hub-ci-cd.yml View File

@@ -165,7 +165,7 @@ jobs:
if [[ -f "Cargo.toml" && -f "pyproject.toml" ]]; then
echo "Publishing $dir using maturin..."
if [[ "${{ runner.os }}" == "Linux" ]]; then
uv pip install "maturin[zig]"
pip install "maturin[zig]"
## The CI/CD is sequential to limit the number of workers used.
@@ -181,7 +181,7 @@ jobs:
maturin publish --target armv7-unknown-linux-musleabihf --zig --skip-existing

else
uv pip install maturin
pip install maturin
maturin publish --skip-existing
fi
else


+ 4
- 3
.github/workflows/node_hub_test.sh View File

@@ -22,7 +22,7 @@ else
cargo build
cargo test

uv pip install "maturin[zig]"
pip install "maturin[zig]"
maturin build --zig
# aarch64-unknown-linux-gnu
@@ -42,9 +42,10 @@ else
else
if [ -f "$dir/pyproject.toml" ]; then
echo "Running linting and tests for Python project in $dir..."
uv venv
uv pip install .
ruff check .
pytest
uv run ruff check .
uv run pytest
fi
fi
fi

Loading…
Cancel
Save