-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
2 changed files
with
18 additions
and
21 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
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 |
---|---|---|
|
@@ -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: "" | ||
|
||
|
||
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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 | ||