This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bc5a03
commit 27ea78d
Showing
9 changed files
with
217 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Benchmark Tests | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- '*.gh*' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
rhino-version: [ '7', '8 WIP' ] | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1 | ||
|
||
- name: Restore Packages | ||
run: nuget restore Crash.sln | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
7.0 | ||
- name: Build Crash | ||
run: | | ||
dotnet build src/Crash/ --configuration Release | ||
dotnet build tests/Crash.Benchmark.Tests/ --configuration Release | ||
# dll changes per rhino version? | ||
# Does this require a headed version of rhino? Or will headless work? | ||
- name: Test | ||
run: | | ||
$path = 'tests/Crash.Benchmark.Tests/bin/Release/net48/*.Tests.dll' | ||
python .\py\nunit-test-runner.py --version ${{ matrix.rhino-version }} --dll $path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: End-to-End Tests | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- '*.gh*' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
rhino-version: [ '7', '8 WIP' ] | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1 | ||
|
||
- name: Restore Packages | ||
run: nuget restore Crash.sln | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
7.0 | ||
- name: Build Crash | ||
run: | | ||
dotnet build src/Crash/ --configuration Release | ||
dotnet build tests/Crash.EndToEnd.Tests/ --configuration Release | ||
- name: End to End Tests | ||
run: | # dll changes per rhino version? | ||
$path = 'tests/Crash.EndToEnd.Tests/bin/Release/net48/*.Tests.dll' | ||
python .\py\nunit-test-runner.py --version ${{ matrix.rhino-version }} --dll $path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Benchmark Tests | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- '*.gh*' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
rhino-version: [ '7', '8 WIP' ] | ||
runs-on: windows-latest | ||
steps: | ||
|
||
- name: Pull Crash.Server Docker | ||
uses: docker/pull-action | ||
with: | ||
pull: crashserver/crash.server:latest | ||
|
||
- name: Start Docker Container | ||
uses: docker/run | ||
with: | ||
run: docker start crashserver/crash.server:latest -p 5000/5000 | ||
|
||
- name: Install Yak | ||
run: | | ||
python .\py\install-yak.py --version ${{ matrix.rhino-version }} | ||
- name: Start Crash | ||
run: | | ||
python .\py\start-crash.py --version ${{ matrix.rhino-version }} | ||
- name: Run Production Tests | ||
run: | | ||
$path = 'tests/Crash.Production.Tests/bin/Release/net48/*.Tests.dll' | ||
python .\py\nunit-test-runner.py --version ${{ matrix.rhino-version }} --dll $path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import subprocess as proc | ||
from glob import glob | ||
import argparse | ||
import os | ||
import sys | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("-v", "--version", type=str, default='7', choices=['7', '8 WIP']) | ||
|
||
args = parser.parse_args() | ||
|
||
yak = f'C:\Program Files\Rhino {args.version}\System\Yak.exe' | ||
|
||
# Could use a local package | ||
proc.run( [yak, 'install', 'crash'] ) | ||
|
||
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import subprocess as proc | ||
from glob import glob | ||
import argparse | ||
import os | ||
import sys | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("-v", "--version", type=str, default='7', choices=['7', '8 WIP']) | ||
parser.add_argument("-d", "--dll", type=str, required=True) | ||
|
||
args = parser.parse_args() | ||
|
||
rhino = f'C:\Program Files\Rhino {args.version}\System\Rhino.exe' | ||
script = f'NUnitTestRunner {args.dll}' | ||
args = f'/nosplash /notemplate /runsript="{script}"' | ||
|
||
proc.run( [rhino, args] ) | ||
|
||
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import subprocess as proc | ||
from glob import glob | ||
import argparse | ||
import os | ||
import sys | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("-v", "--version", type=str, default='7', choices=['7', '8 WIP']) | ||
|
||
args = parser.parse_args() | ||
|
||
rhino = f'C:\Program Files\Rhino {args.version}\System\Rhino.exe' | ||
script = 'OpenSharedModel _Enter _Enter' | ||
args = f'/nosplash /notemplate /runsript="{script}"' | ||
|
||
proc.run( [rhino, args] ) | ||
|
||
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Unit Tests | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- '*.gh*' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1 | ||
|
||
- name: Restore Packages | ||
run: nuget restore Crash.sln | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
7.0 | ||
- name: Build Crash | ||
run: | | ||
dotnet build src/Crash/ --configuration Release | ||
dotnet build tests/Crash.Common.Tests/ --configuration Release | ||
- name: Test | ||
run: | | ||
dotnet test tests/Crash.Common.Tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters