Nightly Full AMMR tests #1558
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: Nightly Full AMMR tests | |
on: | |
schedule: | |
- cron: 0 3 * * * | |
workflow_dispatch: {} | |
concurrency: | |
group: ci-nightly-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: [self-hosted, Windows, AnyBody] | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ams_version: "7.4" | |
ammr_version: "master-ammr-2.4.x" | |
- ams_version: "7.5_Beta" | |
ammr_version: "master-ammr-2.4.x" | |
suppress_deprecation_messages: "On" | |
- ams_version: "7.5_Beta" | |
ammr_version: "master" | |
env: | |
# Triggers a warning at 20 deg muscles angles | |
ShortestPathMaxAngle: 0.3491 | |
ANYBODYCON: C:\Program Files\AnyBody Technology\AnyBody.${{ matrix.ams_version }}\AnyBodyCon.exe | |
ANYBODY_SUPPRESS_DEPRECATION_MESSAGES: ${{ matrix.suppress_deprecation_messages }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ matrix.ammr_version }} | |
- name: Install micro mamba | |
uses: ./.github/actions/setup-micromamba | |
with: | |
environment-file: Tests/test-environment.yml | |
environment-name: _ammr_test | |
- name: Run full AMMR tests | |
run: | | |
~\micromamba.exe shell hook -s powershell | Out-String | iex | |
micromamba activate _ammr_test | |
python -m pytest --runslow -n 4 --durations=20 --anybodycon="$Env:ANYBODYCON" Tests | |
test-linux: | |
runs-on: [self-hosted-linux] | |
container: ghcr.io/anybody/anybodycon-github-actions:${{ matrix.ams_version }} | |
env: | |
ANYBODY_SUPPRESS_DEPRECATION_MESSAGES: ${{ fromJSON('{"7.4":"Off","7.5_Beta":"On"}')[matrix.ams_version] }} | |
strategy: | |
matrix: | |
include: | |
- ams_version: "7.4" | |
ammr_version: "master-ammr-2.4.x" | |
- ams_version: "7.5_Beta" | |
ammr_version: "master" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ matrix.ammr_version }} | |
- name: Set debug env var | |
run: echo ${{ github.event.inputs.debug_config }} >> $GITHUB_ENV | |
- name: Run tests | |
run: pytest -n 2 Tests | |
env: | |
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }} | |
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }} | |