Skip to content

Merge pull request #151 from HamletTanyavong/dev #414

Merge pull request #151 from HamletTanyavong/dev

Merge pull request #151 from HamletTanyavong/dev #414

Workflow file for this run

# Run Mathematics.NET Unit Tests
name: Unit Tests
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
test:
name: Run Unit Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# We do not specify our dotnet versions in the strategy matrix since we need all versions for the tests.
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
- name: Restore Dependencies
run: dotnet restore
- name: Build Test Projects
run: |
cd tests/Mathematics.NET.Tests
dotnet build --no-restore
- name: Run Tests
run: |
cd tests/Mathematics.NET.Tests
dotnet test --no-build --verbosity normal