Skip to content

Commit e0454d9

Browse files
committed
ci: try AND operator with parens for TUnit filter
1 parent 0291081 commit e0454d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ jobs:
4444
# NOTE: Test project currently only targets net10.0. See TODO in NumSharp.UnitTest.csproj
4545
# to re-enable net8.0 when TUnit compatibility is resolved.
4646
#
47-
# Test filtering (using dotnet test --filter with MSTest-style syntax):
47+
# Test filtering (TUnit --treenode-filter syntax):
4848
# - OpenBugs: excluded on all platforms (known-failing bug reproductions)
4949
# - WindowsOnly: excluded on non-Windows (require GDI+/System.Drawing.Common)
5050
- name: Test (net10.0)
5151
shell: bash
5252
run: |
5353
if [[ "$RUNNER_OS" == "Windows" ]]; then
54-
FILTER='TestCategory!=OpenBugs'
54+
FILTER='/*/*/*/*[Category!=OpenBugs]'
5555
else
56-
FILTER='TestCategory!=OpenBugs & TestCategory!=WindowsOnly'
56+
FILTER='/*/*/*/*[(Category!=OpenBugs) AND (Category!=WindowsOnly)]'
5757
fi
58-
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
58+
dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
5959
--configuration Release --no-build --framework net10.0 \
60-
--filter "$FILTER" --logger trx
60+
-- --treenode-filter "$FILTER" --report-trx
6161
6262
- name: Upload Test Results
6363
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)