Skip to content

Commit 99c9da1

Browse files
committed
Update nightly tests CI file
1 parent 05380ff commit 99c9da1

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

.github/workflows/create-compare-reference-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
license_server_password: ${{ secrets.LICENSE_PASSWORD }}
4646
license_server: ${{ secrets.LICENSE_SERVER }}
4747
run: |
48+
cd Tests
4849
pytest --runslow \
4950
-n 2 \
5051
--anytest-output=.output \
51-
--anytest-name=${{ env.GIT_REFERENCE }} \
52-
Tests
52+
--anytest-name=${{ env.GIT_REFERENCE }}
5353
5454
- name: Azure CLI script
5555
uses: azure/CLI@v1
@@ -60,9 +60,9 @@ jobs:
6060
ams_version="${{ steps.RunAnyBody.outputs.anybody_version }}"
6161
az storage blob delete-batch \
6262
--source ${ams_version//\./-} \
63-
--pattern ${{ env.GIT_REFERENCE }}/**/*
63+
--pattern ${{ env.GIT_REFERENCE }}/**/* || true
6464
65-
az storage blob upload-batch
65+
az storage blob upload-batch \
6666
--destination ${ams_version//\./-} \
6767
--source .output/${{ env.GIT_REFERENCE }} \
6868
--destination-path ${{ env.GIT_REFERENCE }}

.github/workflows/nighly-tests.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ on:
55
- cron: 0 3 * * *
66
workflow_dispatch:
77
inputs:
8-
linux_container:
9-
description: 'Which container to run AnyBody on Linux.'
10-
default: ghcr.io/anybody/anybodycon-linux:latest
11-
required: true
128
debug_config:
13-
description: 'A debug environment varibles which is set when running on linux.'
9+
description: 'A debug environment varibles which is set when running tests.'
10+
required: false
1411
default: ""
1512

1613

@@ -31,13 +28,16 @@ jobs:
3128
steps:
3229
- uses: actions/checkout@v2
3330

31+
- name: Set debug env var
32+
echo "${{ github.event.inputs.debug_config }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
33+
3434
- name: Install conda
3535
run: |
3636
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
3737
(Get-FileHash ~\micromamba.tar.bz2).hash -eq "d406ee990640123b05b5b55a720720513d3ad8eed6d3377324e4842c6f141308"
3838
$env:Path = "C:\PROGRA~1\Git\usr\bin;" + $env:Path
3939
tar -xvjf ~/micromamba.tar.bz2 --strip-components 2 -C ~ Library/bin/micromamba.exe
40-
echo "MAMBA_ROOT_PREFIX=$HOME\micromamba" >> $GITHUB_ENV
40+
echo "MAMBA_ROOT_PREFIX=$HOME\micromamba" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
4141
4242
- name: Create conda environment
4343
run: |
@@ -55,7 +55,6 @@ jobs:
5555
5656
test-linux:
5757
runs-on: [self-hosted, linux]
58-
container: ${{ github.event.inputs.linux_container || 'ghcr.io/anybody/anybodycon-linux:latest' }}
5958

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

6766
- name: Set debug env var
6867
run: echo ${{ github.event.inputs.debug_config }} >> $GITHUB_ENV
69-
70-
- name: use newest anypytools
71-
run: |
72-
git clone https://github.com/AnyBody-Research-Group/AnyPyTools.git
73-
pip install ./AnyPyTools
74-
7568

76-
- name: Run full AMMR tests
77-
env:
78-
RLM_LICENSE: [email protected]
79-
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }}
80-
run: pytest -n 2 Tests
69+
- name: Run AnyBody tests
70+
uses: anybody/[email protected]
71+
with:
72+
license_server_password: ${{ secrets.LICENSE_PASSWORD }}
73+
license_server: ${{ secrets.LICENSE_SERVER }}
74+
run: |
75+
cd Tests
76+
pytest --runslow -n 2
77+
8178

0 commit comments

Comments
 (0)