Fix SternoClavicular distraction force in selected output #1542
Workflow file for this run
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
name: AMMR tests | |
on: | |
pull_request: | |
branches: [ master, master-ammr-2.5 ] | |
paths-ignore: | |
- 'Docs/**' | |
workflow_dispatch: | |
inputs: | |
run-slow-tests: | |
type: boolean | |
description: 'Run full tests (--runslow)' | |
required: false | |
default: false | |
use-custom-anybodycon: | |
type: boolean | |
description: 'Use a custom version of AnyBody from AMS build system.' | |
default: false | |
custom-anybodycon-name: | |
description: 'Name of the custom AnyBody version to use. (E.g. path on the I:\ drive)' | |
required: false | |
default: 'AnyBody.7.5-CI-master.AnyBody.7.5.x/AnyBodyCon.exe' | |
custom-pytest-arg: | |
description: 'Specify which test to run. E.g. `Tests/test_example.any`. Default is entire test suite.' | |
required: false | |
default: '' | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
env: | |
# Triggers a warning at 20 deg | |
ShortestPathMaxAngle: 0.3491 | |
ANYBODYCON: C:\Program Files\AnyBody Technology\AnyBody.7.5_Beta\AnyBodyCon.exe | |
runs-on: [self-hosted, Windows, AnyBody] | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download custom AnyBodyCon | |
if: inputs.use-custom-anybodycon | |
uses: ./.github/actions/custom-anybodycon | |
with: | |
custom-anybodycon: ${{ inputs.custom-anybodycon-name }} | |
connection-string: ${{ secrets.AZURE_CONN_STR }} | |
- name: Install micro mamba | |
uses: ./.github/actions/setup-micromamba | |
with: | |
environment-file: Tests/test-environment.yml | |
environment-name: _ammr_test | |
- name: Run AMMR tests (${{ github.event.inputs.run-slow-tests == 'true' && 'slow' || 'fast' }} tests) | |
run: | | |
~\micromamba.exe shell hook -s powershell | Out-String | iex | |
micromamba activate _ammr_test | |
pytest -n 4 --instafail --durations=20 --anybodycon="$Env:ANYBODYCON" ` | |
${{ github.event.inputs.run-slow-tests == 'true' && '--runslow' || '' }} ` | |
${{ github.event.inputs.custom-pytest-arg || 'Tests' }} | |