Skip to content

Commit

Permalink
Update search for creates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad-Edwards committed Jan 11, 2025
1 parent 81a5366 commit 8dbb1ae
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 80 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ci-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,26 @@ jobs:
override: true
- name: Install dependencies
run: sudo apt-get install lcov
- name: Run tests
- name: Run tests for implemented crates
run: |
for toml in $(find crates/cs -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo test --manifest-path $toml
# First, find all implemented crates (those with src directory)
for crate_dir in crates/cs/blocks-cs-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Testing implemented crate: ${crate_dir}"
cargo test --manifest-path "${crate_dir}Cargo.toml"
else
echo "Skipping unimplemented crate: ${crate_dir}"
fi
done
- name: Generate coverage report
run: |
cargo install cargo-llvm-cov
for toml in $(find crates/cs -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo llvm-cov --manifest-path $toml --lcov --output-path lcov.info
# Only generate coverage for implemented crates
for crate_dir in crates/cs/blocks-cs-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Generating coverage for: ${crate_dir}"
cargo llvm-cov --manifest-path "${crate_dir}Cargo.toml" --lcov --output-path lcov.info
fi
done
- name: Check coverage
run: |
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/ci-math.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,26 @@ jobs:
override: true
- name: Install dependencies
run: sudo apt-get install lcov
- name: Run tests
- name: Run tests for implemented crates
run: |
for toml in $(find crates/cs -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo test --manifest-path $toml
# First, find all implemented crates (those with src directory)
for crate_dir in crates/math/blocks-math-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Testing implemented crate: ${crate_dir}"
cargo test --manifest-path "${crate_dir}Cargo.toml"
else
echo "Skipping unimplemented crate: ${crate_dir}"
fi
done
- name: Generate coverage report
run: |
cargo install cargo-llvm-cov
for toml in $(find crates/math -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo llvm-cov --manifest-path $toml --lcov --output-path lcov.info
# Only generate coverage for implemented crates
for crate_dir in crates/math/blocks-math-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Generating coverage for: ${crate_dir}"
cargo llvm-cov --manifest-path "${crate_dir}Cargo.toml" --lcov --output-path lcov.info
fi
done
- name: Check coverage
run: |
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/ci-ml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,26 @@ jobs:
override: true
- name: Install dependencies
run: sudo apt-get install lcov
- name: Run tests
- name: Run tests for implemented crates
run: |
for toml in $(find crates/ml -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo test --manifest-path $toml
# First, find all implemented crates (those with src directory)
for crate_dir in crates/ml/blocks-ml-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Testing implemented crate: ${crate_dir}"
cargo test --manifest-path "${crate_dir}Cargo.toml"
else
echo "Skipping unimplemented crate: ${crate_dir}"
fi
done
- name: Generate coverage report
run: |
cargo install cargo-llvm-cov
for toml in $(find crates/ml -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo llvm-cov --manifest-path $toml --lcov --output-path lcov.info
# Only generate coverage for implemented crates
for crate_dir in crates/ml/blocks-ml-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Generating coverage for: ${crate_dir}"
cargo llvm-cov --manifest-path "${crate_dir}Cargo.toml" --lcov --output-path lcov.info
fi
done
- name: Check coverage
run: |
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/ci-shared.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: CI/CD

on:
Expand All @@ -22,15 +21,26 @@ jobs:
override: true
- name: Install dependencies
run: sudo apt-get install lcov
- name: Run tests
- name: Run tests for implemented crates
run: |
cargo test --manifest-path crates/cs/Cargo.toml
# First, find all implemented crates (those with src directory)
for crate_dir in crates/shared/blocks-shared-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Testing implemented crate: ${crate_dir}"
cargo test --manifest-path "${crate_dir}Cargo.toml"
else
echo "Skipping unimplemented crate: ${crate_dir}"
fi
done
- name: Generate coverage report
run: |
cargo install cargo-llvm-cov
for toml in $(find crates/shared -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo llvm-cov --manifest-path $toml --lcov --output-path lcov.info
# Only generate coverage for implemented crates
for crate_dir in crates/shared/blocks-shared-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Generating coverage for: ${crate_dir}"
cargo llvm-cov --manifest-path "${crate_dir}Cargo.toml" --lcov --output-path lcov.info
fi
done
- name: Check coverage
run: |
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/ci-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,26 @@ jobs:
override: true
- name: Install dependencies
run: sudo apt-get install lcov
- name: Run tests
- name: Run tests for implemented crates
run: |
for toml in $(find crates/stats -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo test --manifest-path $toml
# First, find all implemented crates (those with src directory)
for crate_dir in crates/stats/blocks-stats-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Testing implemented crate: ${crate_dir}"
cargo test --manifest-path "${crate_dir}Cargo.toml"
else
echo "Skipping unimplemented crate: ${crate_dir}"
fi
done
- name: Generate coverage report
run: |
cargo install cargo-llvm-cov
for toml in $(find crates/stats -name "Cargo.toml"); do
echo "Running tests for $toml"
cargo llvm-cov --manifest-path $toml --lcov --output-path lcov.info
# Only generate coverage for implemented crates
for crate_dir in crates/stats/blocks-stats-*/; do
if [ -d "${crate_dir}src" ]; then
echo "Generating coverage for: ${crate_dir}"
cargo llvm-cov --manifest-path "${crate_dir}Cargo.toml" --lcov --output-path lcov.info
fi
done
- name: Check coverage
run: |
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/ci.yml

This file was deleted.

0 comments on commit 8dbb1ae

Please sign in to comment.