Skip to content

Commit 451a717

Browse files
Merge pull request #92 from ModiaSim/gh_updateGitHubRuntests
Update GitHub Runtests workflow
2 parents ba98eda + ad4fe27 commit 451a717

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@ name: Run tests
22

33
env:
44
JULIA_NUM_THREADS: 4
5-
65
on:
7-
- push
6+
pull_request:
7+
branches:
8+
- main
89
jobs:
910
test:
1011
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1112
runs-on: ${{ matrix.os }}
1213
strategy:
13-
fail-fast: true
14+
fail-fast: false
1415
matrix:
1516
version:
16-
- '1.7'
17+
- '1.7.2'
1718
os:
1819
- ubuntu-latest
1920
- windows-latest
21+
- macos-latest
2022
arch:
2123
- x64
2224
steps:

test/Collision/CollidingSphereWithBunnies.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ convexPartitions = @instantiateModel(buildModia3D(ConvexPartitions), unitless=tr
3131
stopTime = 1.3
3232
if Sys.iswindows()
3333
requiredFinalStates = [1.6852436731117506, -1.9602009870847892, 1.5537079430670875, 4.576280426855566, -3.6359538989543787, -1.8281828479408744, 16.048751238499957, 0.11284016337050634, 8.101268624505751, 28.746819815200922, 8.39876218585158, 37.19093884427305]
34+
elseif Sys.isapple()
35+
requiredFinalStates = [1.6869846641079747, -1.9588606270293238, 1.5530247319055936, 4.5856253956554225, -3.6281065583891867, -1.8321913845833115, 16.05045750700684, 0.11060518842830577, 8.104158851820499, 28.80641529588638, 8.168480244718031, 37.20010873664111]
3436
else
3537
requiredFinalStates = [1.6863191515678857, -1.959326139586727, 1.5524868091473853, 4.582527752958374, -3.630808257742642, -1.8352059702486623, 16.048770476114274, 0.11319234251167573, 8.101743640120217, 28.75572277458283, 8.390512432007, 37.189873260046895]
3638
end

0 commit comments

Comments
 (0)