We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32d7af9 commit 76ad82eCopy full SHA for 76ad82e
.github/workflows/tests.yml
@@ -33,7 +33,18 @@ jobs:
33
uses: Swatinem/rust-cache@v2
34
35
- name: Run Rust tests
36
- run: cargo test
+ shell: bash
37
+ run: |
38
+ # Get all workspace packages and filter out those starting with 'ruff'
39
+ packages=$(cargo metadata --format-version 1 --no-deps | \
40
+ jq -r '.workspace_members[]' | \
41
+ sed 's/.*\///' | \
42
+ grep -v '^ruff' | \
43
+ xargs)
44
+ # Build cargo test command with -p flags for each package
45
+ # Format as `cargo test -p <package> -p <package> ...`
46
+ echo "Running tests for packages: $packages"
47
+ cargo test $(echo "$packages" | sed 's/\([^ ]*\)/-p \1/g')
48
49
# After Rust tests pass, run Python tests next
50
- name: Set up Python ${{ matrix.python-version }}
0 commit comments