Skip to content

Commit

Permalink
Exclude driver dependent tests from linux run
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jul 17, 2024
1 parent 59461af commit bf672da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
matrix:
configuration: [debug, release]
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
test-filter: --filter TestCategory!=DriverDependent
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -35,7 +38,7 @@ jobs:
run: dotnet build --no-restore --configuration ${{ matrix.configuration }}

- name: Pack
run: dotnet pack --no-restore --no-build --configuration ${{ matrix.configuration }}
run: dotnet pack --no-build --configuration ${{ matrix.configuration }}

- name: Test
run: dotnet test --no-restore --no-build --configuration ${{ matrix.configuration }}
run: dotnet test --no-build --configuration ${{ matrix.configuration }} ${{ matrix.test-filter }}
9 changes: 7 additions & 2 deletions src/Aeon.Tests/OperatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ public void Build_Workflows()
var acquisition = typeof(GroupByTime).Assembly;
var environment = typeof(EnvironmentState).Assembly;
var foraging = typeof(WheelDisplacement).Assembly;
var video = typeof(VideoDataFrame).Assembly;
var vision = typeof(DistanceFromPoint).Assembly;
var sleap = typeof(FormatPose).Assembly;
AssertWorkflow.CanBuildEmbeddedResources(acquisition);
AssertWorkflow.CanBuildEmbeddedResources(environment);
AssertWorkflow.CanBuildEmbeddedResources(foraging);
AssertWorkflow.CanBuildEmbeddedResources(video);
AssertWorkflow.CanBuildEmbeddedResources(vision);
AssertWorkflow.CanBuildEmbeddedResources(sleap);
}

[TestMethod, TestCategory("DriverDependent")]
public void Build_DriverDependentWorkflows()
{
var video = typeof(VideoDataFrame).Assembly;
AssertWorkflow.CanBuildEmbeddedResources(video);
}
}
}

0 comments on commit bf672da

Please sign in to comment.