-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (39 loc) · 1.21 KB
/
jitter-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: JitterTests
on:
push:
branches: [ main ]
pull_request:
permissions:
id-token: write
contents: write
checks: write
actions: write
env:
CONFIGURATION: Release
TEST_RESULTS_DIR: ./TestResults
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/JitterTests
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore
- name: Run Tests
run: |
mkdir -p ${{ env.TEST_RESULTS_DIR }}
# Run Single Precision Tests
dotnet test --configuration ${{ env.CONFIGURATION }} --no-restore \
--test-adapter-path:. --logger "trx;LogFileName=single-precision.trx"
# Run Double Precision Tests
dotnet test --configuration ${{ env.CONFIGURATION }} -p:DefineConstants="USE_DOUBLE_PRECISION" --no-restore \
--test-adapter-path:. --logger "trx;LogFileName=double-precision.trx"
if: always()