Skip to content

Commit

Permalink
Update nightly tests CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
melund committed Oct 13, 2021
1 parent 05380ff commit 35d2fb7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-compare-reference-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
license_server_password: ${{ secrets.LICENSE_PASSWORD }}
license_server: ${{ secrets.LICENSE_SERVER }}
run: |
cd Tests
pytest --runslow \
-n 2 \
--anytest-output=.output \
--anytest-name=${{ env.GIT_REFERENCE }} \
Tests
--anytest-name=${{ env.GIT_REFERENCE }}
- name: Azure CLI script
uses: azure/CLI@v1
Expand All @@ -60,7 +60,7 @@ jobs:
ams_version="${{ steps.RunAnyBody.outputs.anybody_version }}"
az storage blob delete-batch \
--source ${ams_version//\./-} \
--pattern ${{ env.GIT_REFERENCE }}/**/*
--pattern ${{ env.GIT_REFERENCE }}/**/* || true
az storage blob upload-batch
--destination ${ams_version//\./-} \
Expand Down
33 changes: 15 additions & 18 deletions .github/workflows/nighly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ on:
- cron: 0 3 * * *
workflow_dispatch:
inputs:
linux_container:
description: 'Which container to run AnyBody on Linux.'
default: ghcr.io/anybody/anybodycon-linux:latest
required: true
debug_config:
description: 'A debug environment varibles which is set when running on linux.'
description: 'A debug environment varibles which is set when running tests.'
required: false
default: ""


Expand All @@ -31,13 +28,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set debug env var
echo "${{ github.event.inputs.debug_config }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append

- name: Install conda
run: |
Invoke-Webrequest -URI https://anaconda.org/conda-forge/micromamba/0.16.0/download/win-64/micromamba-0.16.0-0.tar.bz2 -OutFile ~\micromamba.tar.bz2
(Get-FileHash ~\micromamba.tar.bz2).hash -eq "d406ee990640123b05b5b55a720720513d3ad8eed6d3377324e4842c6f141308"
$env:Path = "C:\PROGRA~1\Git\usr\bin;" + $env:Path
tar -xvjf ~/micromamba.tar.bz2 --strip-components 2 -C ~ Library/bin/micromamba.exe
echo "MAMBA_ROOT_PREFIX=$HOME\micromamba" >> $GITHUB_ENV
echo "MAMBA_ROOT_PREFIX=$HOME\micromamba" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Create conda environment
run: |
Expand All @@ -55,7 +55,6 @@ jobs:
test-linux:
runs-on: [self-hosted, linux]
container: ${{ github.event.inputs.linux_container || 'ghcr.io/anybody/anybodycon-linux:latest' }}

env:
# Triggers a warning at 20 deg muscles angles
Expand All @@ -66,16 +65,14 @@ jobs:

- name: Set debug env var
run: echo ${{ github.event.inputs.debug_config }} >> $GITHUB_ENV

- name: use newest anypytools
run: |
git clone https://github.com/AnyBody-Research-Group/AnyPyTools.git
pip install ./AnyPyTools

- name: Run full AMMR tests
env:
RLM_LICENSE: [email protected]
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }}
run: pytest -n 2 Tests
- name: Run AnyBody tests
uses: anybody/[email protected]
with:
license_server_password: ${{ secrets.LICENSE_PASSWORD }}
license_server: ${{ secrets.LICENSE_SERVER }}
run: |
cd Tests
pytest --runslow -n 2

0 comments on commit 35d2fb7

Please sign in to comment.